View的圆角边框简单实现
2015-11-08 23:09
246 查看
圆角边框实现比较容易,定义shape.xml作为View的background即可
<?xml version= "1.0" encoding= "utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<stroke android:width="2dp" android:color="#817F80"/>
<padding android:left="7dp" android:top="7dp" android:right="7dp"
android:bottom="7dp" />
<corners android:radius="10dp" />
<solid android:color="#FBFBFB" />
</shape>
<?xml version= "1.0" encoding= "utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<stroke android:width="2dp" android:color="#817F80"/>
<padding android:left="7dp" android:top="7dp" android:right="7dp"
android:bottom="7dp" />
<corners android:radius="10dp" />
<solid android:color="#FBFBFB" />
</shape>
相关文章推荐
- Objective-C语法之KVC使用
- 哎呀,发现自己不会用模块的方式用kprobe啊,弱爆了
- Android 微光闪烁效果之更强Shimmer-android
- 黑马程序员——集合——Collection、List、set、Map
- ubuntu 下python编程 安装vtk模块
- eclipse export runnable jar(导出可执行jar包)
- Hive 表连接
- FPGA研发之道(14)写在coding之前的铁律
- 华为HG8245C光猫设置VOIP
- 硅谷机器人改变世界
- solr.in.action-ch06
- mybatis基础 (上手笔记1)
- Java 字符串等知识详解
- BFS
- Linux学习之软件管理
- vector中不能存放引用类型!!!!!!!!
- iOS 单例模式的介绍和写法
- FPGA研发之道(13)-设计不是凑波形(三)RAM
- C# List 的一些操作 (两List元素是否想同,List是否包含在另一个List中)
- 【设置图像的提示文字】