一种字体两种形式,加粗
2014-12-02 17:39
148 查看
spanText =
new SpannableString("萝卜白菜的博客 -- http://orgcent.com");
spanText.setSpan(new ForegroundColorSpan(Color.BLUE),
6, spanText.length(), Spannable.SPAN_INCLUSIVE_EXCLUSIVE);
mTVText.append("\n");
mTVText.append(spanText);
spanText =
new SpannableString("StyleSpan -- 萝卜白菜的博客");
//Typeface.BOLD_ITALIC:粗体+斜体
spanText.setSpan(new StyleSpan(Typeface.BOLD_ITALIC),
3, 7, Spannable.SPAN_INCLUSIVE_EXCLUSIVE);
mTVText.append("\n");
mTVText.append(spanText);
new SpannableString("萝卜白菜的博客 -- http://orgcent.com");
spanText.setSpan(new ForegroundColorSpan(Color.BLUE),
6, spanText.length(), Spannable.SPAN_INCLUSIVE_EXCLUSIVE);
mTVText.append("\n");
mTVText.append(spanText);
spanText =
new SpannableString("StyleSpan -- 萝卜白菜的博客");
//Typeface.BOLD_ITALIC:粗体+斜体
spanText.setSpan(new StyleSpan(Typeface.BOLD_ITALIC),
3, 7, Spannable.SPAN_INCLUSIVE_EXCLUSIVE);
mTVText.append("\n");
mTVText.append(spanText);
相关文章推荐
- Response.Redirect 打开这两种方法的一种新形式
- 一种特殊形式求和的两种简单解法
- Android 字体加粗的两种方法
- 在 Perl看来, 字符串只有两种形式. 一种是octets, 即8位序列, 也就是我们通常说的字节数组. 另一种utf8编码的字符串, perl管它叫string. 也就是说: Perl只熟悉两种编
- Response.Redirect 打开这两种方法的一种新形式
- 通常大家都是用UITableView的两种形式,UITableViewStylePlain,UITableViewStyleGrouped; 其实还有一种类似系统 自带通讯录的那种 Section
- jquery 表单验证方法(两种 一种是弹出形式 一种是不弹出形式)
- 在 Perl看来, 字符串只有两种形式. 一种是octets, 即8位序列, 也就是我们通常说的字节数组. 另一种utf8编码的字符串, perl管它叫string. 也就是说: Perl只熟悉两种编
- 在 Perl看来, 字符串只有两种形式. 一种是octets, 即8位序列, 也就是我们通常说的字节数组. 另一种utf8编码的字符串, perl管它叫string. 也就是说: Perl只熟悉两种编
- 简述会话劫持攻击的两种形式
- 最近两周我们接触到的两种线上抓娃娃机的技术实现方案(一种RTSP/一种RTMP)
- JSP中include其他页面的两种形式的区别
- android图片截取的两种形式
- Hdu 4918 Query on the subtree(一棵树,两种操作,一种是将某个点的权值修改为v,另一种是查询距离点u不超过d的点的权值和。)
- Ringtone的两种类型三种形式
- java字体设置,包括大小,颜色,加粗,下划线,对齐,斜体的设置
- lable字体加粗
- MyBatis association的两种形式——MyBatis学习笔记之四
- 对付数列形式根号的一种方法2
- 修改用户时,选择性别的两种形式:button和下拉列表