android radius 两个角,Android radius上边两个圆角,底下是方角的实现
做无线查房系统时,遇到一个按钮是上面两个圆角,下面两个方角类似标签的图片,一开始设置为:android:topLeftRadius="8dip"android:topRightRadius="8dip"android:bottomLeftRadius="0dip"android:bottomRightRadius="0dip"/>结果发现整个按钮背景不显示,后修改为:android:topL
·
做无线查房系统时,遇到一个按钮是上面两个圆角,下面两个方角类似标签的图片,一开始设置为:
android:topLeftRadius="8dip"
android:topRightRadius="8dip"
android:bottomLeftRadius="0dip"
android:bottomRightRadius="0dip"/>
结果发现整个按钮背景不显示,后修改为:
android:topLeftRadius="8dip"
android:topRightRadius="8dip"
android:bottomLeftRadius="1dip"
android:bottomRightRadius="1dip"/>
android:left="0dip"
android:right="0dip"
android:top="0dip"
android:bottom="0dip"/>
添加了padding属性后,可以正常显示了。
原文:http://www.cnblogs.com/shanshuijian/p/4867437.html
更多推荐
已为社区贡献2条内容
所有评论(0)