TextView Button 设置圆角背景
来源:互联网 发布:凯文马丁nba2k隐藏数据 编辑:程序博客网 时间:2024/05/22 17:39
/** * * @param tvGmTimeType * @param textBackColor * @param roundRadius 圆角半径 */public static void setTextBackColor(TextView tvGmTimeType, int textBackColor, int roundRadius) {//int roundRadius = 15; // 8dp//int fillColor = Color.parseColor();//内部填充颜色GradientDrawable gd = new GradientDrawable();//创建drawablegd.setColor(textBackColor);gd.setCornerRadius(roundRadius);tvGmTimeType.setBackgroundDrawable(gd);}
阅读全文
0 0
- TextView Button 设置圆角背景
- 代码设置TextView、Button等控件圆角边框背景颜色
- Android 代码设置TextView、Button等控件圆角边框背景颜色
- Android给TextView设置透明背景、圆角边框
- Android给TextView设置透明背景、圆角边框
- 设置button背景透明
- TextView设置背景
- Android通过selector选择器设置Button或者textview的背景颜色,字体颜色
- 通过选择器selector给TextView,Button设置字体颜色和背景颜色
- Swift开发教程--设置圆角Button和圆角边框TextView
- MFC给button设置背景。
- 设置Button按钮状态背景
- TextView 背景设置无效解决
- button 圆角设置
- 安卓自定义圆角Button,继承Button类实现在xml设置圆角半径和背景颜色和点击背景颜色
- 如何在Xib中设置Button的属性(圆角以及背景颜色)
- 如何在Xib中设置Button的属性(圆角以及背景颜色)
- (转)#小美化#Android给TextView设置透明背景、圆角边框
- Mac OSX的Apache无法启动,没有错误提示
- 时间计算,返回今天昨天明天,年月日
- Excel:用VBA添加分页符
- java生成PDF,各种格式、样式、水印都有
- tp3.5 微信公众号群发图文消息
- TextView Button 设置圆角背景
- 字符串
- HHUOJ_1350: 破译邮件
- Oracle数据库-QSL(上)
- 蓝桥杯 算法训练 未名湖边的烦恼 (Java解题)
- 【笔试题】
- 日常工作总结
- 奇偶数排序
- 使用OwnCloud建立属于自己的私有的云存储网盘(百度网盘)