Android 为TextView 添加边框
2014-03-17 10:31
375 查看
1.在res下的drawble文件夹下新建文件,textview_border.xml:
2.在textView中指定background:
<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" > <solid android:color="#ffffff" /> <stroke android:width="3dip" android:color="#4fa5d5"/> </shape>
2.在textView中指定background:
android:background="@drawable/textview_border"
相关文章推荐
- android 为TextView添加边框
- android 为TextView添加边框
- Android--为TextView添加边框
- android 为TextView添加边框
- Android--为TextView添加边框
- android textView添加不同颜色的边框
- android 为TextView添加边框
- android 为TextView添加边框
- android里TextView加下划线的几种方式 以及 为TextView添加边框 4000
- android 为TextView添加边框
- Android---10---TextView添加链接的两种方式
- 自定义TextView之 给你的TextView添加边框
- Android的AutoCompleteTextView在API17高版本添加的setText函数在低版本系统居然能正常调用?官方文档是不是不靠谱了?
- Android 编程下 TextView 添加链接的一种方式
- Android 添加TextView删除线(代码简单)
- QQ聊天之Android显示Gif ——在TextView中添加动态表情
- (转)#小美化#Android给TextView设置透明背景、圆角边框
- android 动态添加TextView 设置margin
- android:为TextView添加样式——下划线,颜色,设置链接样式及前背景色
- Android给TextView添加点击事件