您的位置:首页 > 其它

如何设置 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;

    }
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: