Android stroke 边框线 某一边
来源:互联网 发布:申请域名注册备案平台 编辑:程序博客网 时间:2024/06/04 00:25
有时候需要给View加边框线,我们经常是四边一起加,就像这样:
<shape xmlns:android="http://schemas.android.com/apk/res/android"> <solid android:color="#89c997"></solid> <stroke android:width="0.5dp" android:color="#c3c3c3"></stroke></shape>
然而有时候,我们并不需要四边都会有边框,那我们就需要用到layer-list标签,比如我们只给下加边框:
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item android:left="-2dp" android:right="-2dp" android:top="-2dp"> <shape> <solid android:color="#ffffff"/> <stroke android:width="1dp" android:color="#ff0000"/> </shape> </item></layer-list>
在这个item中,你可以指定哪些边不加边框。
2 0
- Android stroke 边框线 某一边
- Android stroke 边框线 某一边
- Android stroke 边框线 某一边
- Android下Shape设置stroke描边部分机型不显示边框线
- SVG 边框(stroke)
- android stroke
- android stroke描边,去掉左右描边
- Android Paint Stroke某些情况下边框宽度显示一半原因
- CSS3 文字边框 -webkit-text-stroke
- android shape stroke
- Android中如何让控件只显示某一边框
- CSS3 文字边框 -webkit-text-stroke 镂空的字体
- android边框线
- Android shape、gradient、stroke、corners 、state_pressed研究
- android使用shape stroke描边只保留底部
- android Shape详解(solid,stroke...)
- android使用shape stroke描边只保留底部
- android使用shape stroke描边只保留底部
- Codeforces Round #378 (Div. 2)C. Epidemic in Monstropolis
- 数据结构与算法之拓扑排序
- win10安装一键ghost,重启仍然直接进入win10的解决办法
- 【虚拟机】苹果虚拟机mac10.11.6+Xcode8.1
- 读研期间如何提高编程技术
- Android stroke 边框线 某一边
- 2016-11-1 python day001
- Acticle 16:选项卡(jquery写法)
- JSONKit在项目中使用设置(ARC与方法更新)
- python通过查找注册表的方式获取盘符(磁盘列表)
- 百度地图获取特定城市经纬度和经纬度解析
- YII 常识记载
- SOCKET:套接字
- Android 定时器