<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
// 此处可以设置shape的形状 不设置默认为rectangle
android:shape=["rectangle"|"oval"|"line"|"ring"|]
>
<!-- 圆角 shape="rectangle"是使用 默认为1dp -->
<corners
android:radius="xdp"
android:topLeftRadius="xdp"
android:topRightRadius="xdp"
android:bottomLeftRadius="xdp"
android:bottomRightRadius="xdp"/>
<!-- 渐变 -->
<gradient
android:startColor="color"
android:centerColor="color"
android:endColor="color"
android:useLevel="boolean"
android:angle="integer"//angle的值必须是45的倍数(包括0),仅在type="linear"有效
android:type=["linear"|"radial"|"sweep"]
android:centerX="integer"
android:centerY="integer"
android:gradientRadius="integer"/>
<!-- 间隔 -->
<padding
android:left="xdp"
android:top="xdp"
android:right="xdp"
android:bottom="xdp"/>
<!-- 大小 宽度和高度 -->
<size
android:width="dp"
android:height="dp"/>
<!-- 填充 -->
<solid
android:color="color"/><!-- 填充的颜色 -->
<!-- 描边 -->
<stroke
android:width="dp"
android:color="color"
android:dashWidth="dp" //虚线宽度
android:dashGap="dp"/> //虚线间隔宽度
</shape>
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<!-- item1 -->
<item>
<bitmap android:src="drawable"
android:gravity="center" />
</item>
<!-- item2 -->
<item>
<bitmap android:src="drawable"
android:gravity="center" />
</item>
<!-- item3 -->
<item
<bitmap android:src="drawable"
android:gravity="center" />
</item>
</layer-list>
<?xml version="1.0" encoding="utf-8" ?> <selector xmlns:Android="http://schemas.android.com/apk/res/android"> <!-- 默认时的背景图片--> <item Android:drawable="drawable" /> <!-- 没有焦点时的背景图片 --> <item Android:state_window_focused="false" android:drawable="drawable" /> <!-- 非触摸模式下获得焦点并单击时的背景图片 --> <item Android:state_focused="true" android:state_pressed="true" android:drawable= "drawable" /> <!-- 触摸模式下单击时的背景图片--> <item Android:state_focused="false" Android:state_pressed="true" Android:drawable="drawable" /> <!--选中时的图片背景--> <item Android:state_selected="true" android:drawable="drawable" /> <!--获得焦点时的图片背景--> <item Android:state_focused="true" Android:drawable="drawable" /> </selector>
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-3 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2026 源码网商城 (www.yuanmawang.com) 版权所有