Android TextView设置背景色和边框
2013-04-23 09:19
639 查看
1.在drawable文件夹下面创建setbar_bg.xml
2.设置TextView顺序
<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" > <!-- 背景色 --> <solid android:color="#FFE4B5"/> <!-- 边框色 --> <stroke android:width="0.5dip" android:color="#81CE47" /> </shape>
2.设置TextView顺序
android:background="@drawable/setbar_bg"
相关文章推荐
- Android TextView设置背景色与边框的方法详解
- (转)#小美化#Android给TextView设置透明背景、圆角边框
- Android自定义TextView 自定义设置圆角背景色
- android xml实现TextView圆角 边框颜色 边框长度 背景色
- Android给TextView设置透明背景、圆角边框
- Android给TextView,EditText等设置边框
- Android给TextView设置透明背景、圆角边框
- Android设置textview只有一边有边框
- android:为TextView添加样式——下划线,颜色,设置链接样式及前背景色
- Android给TextView设置透明背景、圆角边框
- android:为TextView添加样式——下划线,颜色,设置链接样式及前背景色
- android:TextView设置背景色和文本颜色
- android:为TextView添加样式——下划线,颜色,设置链接样式及前背景色
- Android给TextView和EditText等控件设置透明背景、圆角边框
- android:为TextView添加样式——下划线,颜色,设置链接样式及前背景色
- Android给TextView设置透明背景、圆角边框
- android:为TextView添加样式——下划线,颜色,设置链接样式及前背景色
- Android给TextView设置透明背景、圆角边框
- android:为TextView添加样式——下划线,颜色,设置链接样式及前背景色
- android:为TextView添加样式——下划线,颜色,设置链接样式及前背景色