Android通过代码实现虚线或者虚线框shape
来源:互联网 发布:变老软件 编辑:程序博客网 时间:2024/06/05 20:47
虚线
<?xml version="1.0" encoding="utf-8"?><shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="line"> <stroke android:width="1dp" android:color="#f3f3f3" android:dashWidth="3dp" android:dashGap="3dp" /></shape>
虚线框
<?xml version="1.0" encoding="utf-8"?><shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <stroke android:width="1dp" android:color="#f3f3f3" android:dashWidth="3dp" android:dashGap="3dp" /></shape>
虚线圆
<?xml version="1.0" encoding="utf-8"?><shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval"> <stroke android:width="1dp" android:color="#f3f3f3" android:dashWidth="3dp" android:dashGap="3dp" /></shape>
顶部虚线
<?xml version="1.0" encoding="utf-8"?><layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item android:left="-2dp" android:right="-2dp" android:bottom="-2dp"> <shape> <stroke android:width="1dp" android:color="#f3f3f3" android:dashWidth="3dp" android:dashGap="3dp" /> </shape> </item></layer-list>
底部虚线
<?xml version="1.0" encoding="utf-8"?><layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item android:left="-2dp" android:right="-2dp" android:top="-2dp"> <shape> <stroke android:width="1dp" android:color="#f3f3f3" android:dashWidth="3dp" android:dashGap="3dp" /> </shape> </item></layer-list>
使用
android:background="@drawable/shape_dash_line"
阅读全文
0 0
- Android通过代码实现虚线或者虚线框shape
- android通过shape实现虚线效果
- Android虚线分割Shape
- Android shape 画 虚线
- Android Shape绘制虚线
- Android虚线分割Shape
- Android通过用代码画虚线椭圆边框背景来学习一下shape的用法
- Android通过用代码画虚线椭圆边框背景来学习一下shape的用法
- CSS实现虚线框代码
- Android通过xml shape画实线、虚线等常见几何图形
- Android—shape画虚线
- Android利用shape画虚线
- android利用shape画虚线
- android用shape画虚线
- android 使用shape 画虚线
- Android利用shape画虚线
- Android XML绘图Shape虚线
- Android的虚线,虚线和实现并存
- 从走前端之路
- Spring data JAP SQL error:17059 SQL State:99999
- css可控旋转音乐播放按钮
- 8月24号 使用cookie记录登录用户
- Java使用Jco连接sap详解
- Android通过代码实现虚线或者虚线框shape
- HDU 1009 fatmouse' trade
- HDU-3746 Cyclic Nacklace (对next的深入思考)
- Shell编程面试题3_批量修改某一目录下的所有文件名
- Python numpy 操作
- idea 自定义 maven archtype
- 【JavaScript入门】初识JavaScript
- Android--小小记事本
- 事件分发机制-ScrollView嵌套ListView问题产生原理以及常见解决方式