layer-list 画View两面边框方法
2016-04-22 13:41
260 查看
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item android:bottom="-2px" android:right="-2px" //还也可以有top left -2是为了隐藏 -1 效果然并卵 > <shape android:shape="rectangle" > <stroke android:width="1px" android:color="@color/host_bg" > </stroke> <solid android:color="@color/bg_white" ></solid>//不填充色部分手机直接按照主题色显示。白or黑 </shape> </item> </layer-list>
this is all .
相关文章推荐
- angular控制器
- #pragma预处理命令
- Spring配置数据源(dbcp/c3p0/jndi)
- ZOJ 3490 String Successor(模拟)
- GridView如何使得item之间的距离和左右侧距离相等
- ZOJ 3490 String Successor(模拟)
- django中的字段类型
- java中的IO一
- notebook kernels
- jquery 的(function(){});表示什么?
- ORA-12516: TNS: 监听程序无法找到匹配协议栈的可用句柄
- Linux Kernel Release Versions
- 线程
- 作业调度
- ThinkPHP集成阿里支付
- MySQL 批量插入 Update时Replace
- java.lang.OutOfMemoryError: PermGen space及其解决方法
- document.body / document.ducumentElement /等获取高度和宽度的区别 ----转载
- Python yield 使用浅析
- 【学习C++】C++ Primer Plus (第六版)第八章编程练习1-7