Android Shape绘制背景
来源:互联网 发布:一钻淘宝店铺多少钱 编辑:程序博客网 时间:2024/06/05 10:44
需要绘制一个背景,上面有圆角,然后四边有边框。是Shape很简单的用法。
大概是这样的,就是有几层绘制出来的。
使用layer-list标签
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" > <item> <shape android:shape="rectangle"> <solid android:color="#FFFFFFFF"/> </shape> </item> <item android:top="20dp" android:bottom="20dp" android:right="15dp" android:left="20dp"> <shape android:shape="rectangle"> <solid android:color="#000000"/> <corners android:radius="15dp"/> </shape> </item> <item android:top="20dp" android:bottom="20dp" android:right="20dp" android:left="20dp"> <shape android:shape="rectangle"> <solid android:color="#F39800"/> <corners android:radius="8dp"/> </shape> </item></layer-list>
其中:item标签下的top、bottom、left、right属性相当于布局中的各个方向的margin,这一点比较重要。
阅读全文
0 0
- Android Shape绘制背景
- shape绘制背景
- android 用shape绘制虚线添加到view当背景
- shape简单绘制圆形背景
- android 字画背景 shape
- Android背景渐变[shape]
- android shape 圆形背景
- Android Shape绘制虚线
- android 使用shape做背景
- android 背景shape的使用
- Android 使用Shape自定义背景
- android自定义背景shape使用
- android中shape绘制背景图片
- Android Shape绘制实用圆圈
- Android Shape绘制实用圆圈
- Android drawable shape绘制边框
- Android Shape绘制实用圆圈
- android shape绘制组件边框
- UE4 怎样在VR模式下摄像机的正前方显示某个东西,譬如3DUI?
- Codeforces 160C Find Pair【思维+排序】
- Implicit super constructor Object() is undefined for default constructor. Must define an explicit co
- 有关抽奖的概率计算问题
- 「python」异常
- Android Shape绘制背景
- 欢迎使用CSDN-markdown编辑器
- 自我简介
- eclipse中配置svn
- POJ 1163
- R语言入门4——数据的结构
- AOP入门之静态代理
- 通达oa破解版/通达oa2017破解补丁/最新通达oa2017破解版下载
- Linux学习(四)