如何设置 textDrawable
2016-05-20 10:26
295 查看
public static Drawable getTextDrawable (String firstChar) {
TextDrawable drawable = TextDrawable.builder()
.beginConfig()
.width(48)
.height(48)
.endConfig()
.buildRect(firstChar, R.color.caldroid_gray);
return drawable;
}
TextDrawable drawable = TextDrawable.builder()
.beginConfig()
.width(48)
.height(48)
.endConfig()
.buildRect(firstChar, R.color.caldroid_gray);
return drawable;
}
相关文章推荐
- mysql主从配置
- iOS Video Streaming(收集,整理)
- 关于表、栈和队列的深入探讨
- PDF转图片
- Request常用方法
- Ubuntu 14.04环境变量修改
- Swift-扩展
- CI多环境 挺有用的,记录一下
- Android开发中对象的实例化示例
- 手动配置gradle
- Installing cmake 2.8.8 or higher on Ubuntu 12.04 (Precise Pangolin) (转载)
- 关于Eclipse开发环境中编译器的设置
- BAT及各大互联网公司2014前端笔试面试题:HTML/CSS篇
- 隐语义模型(LFM)
- dump json 显示中文问题
- Java WebService 简单实例
- 单链表删除倒数第k个节点
- Linux下基于v4l2框架的图像采集
- Linux下gcc编译生成动态链接库*.so文件并调用它
- 发布一个web项目