标签:
set 动画容器 可作为资源id添加R.anim.xxxx 可用于在样式表中添加 http://blog.csdn.net/liuhe688/article/details/6660823
inset 嵌入可绘制资源容器 在样式表中 添加 <item name="android:background">@drawable/background_view_rounded_bottom</item>
<?xml version="1.0" encoding="UTF-8"?>
<inset android:insetLeft="1.0px" android:insetRight="1.0px" android:insetTop="1.0px" android:insetBottom="1.0px"
xmlns:android="http://schemas.android.com/apk/res/android">
<selector>
<item android:state_pressed="true">
<shape>
<gradient android:startColor="@color/base_start_color_pressed" android:endColor="@color/base_end_color_pressed" android:angle="270.0" />
<corners android:radius="2.0dip" android:topLeftRadius="0.0dip" android:topRightRadius="0.0dip" android:bottomLeftRadius="10.0dip" android:bottomRightRadius="10.0dip" />
</shape>
</item>
<item>
<shape>
<gradient android:startColor="@color/base_start_color_default" android:endColor="@color/base_end_color_default" android:angle="270.0" />
<corners android:radius="2.0dip" android:topLeftRadius="0.0dip" android:topRightRadius="0.0dip" android:bottomLeftRadius="11.0dip" android:bottomRightRadius="11.0dip" />
</shape>
</item>
</selector>
</inset>
标签:
原文地址:http://www.cnblogs.com/luquanmingren/p/4648029.html