Android TextView设置背景色与边框的方法详解
摘要:1.在drawable文件夹下面创建setbar_bg.xml复制代码代码如下:2.设置TextView顺序复制代码代码如下:android...
1.在drawable文件夹下面创建setbar_bg.xml
复制代码 代码如下:
<?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和ListView的方法
★ 基于Android ContentProvider的总结详解
★ 用Android Location获取当前地理位置的方法
★ Android为ListView的Item设置不同的布局