首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

2.1干拐角的bug

2012-08-29 
2.1做拐角的bug本来想在左下 左上弄一个拐角stroke android:width3dp?? ? ? ? ?android:color#55555

2.1做拐角的bug

本来想在左下 左上弄一个拐角

<stroke android:width="3dp"?
? ? ? ? ?android:color="#555555"?
? ? ? ? ?/>?
?
?<padding android:left="1dp"?
? ? ? ? ? android:top="1dp"?
? ? ? ? ? android:right="1dp"?
? ? ? ? ? android:bottom="1dp"?
? ? ? ? ? /> ?
?
?<corners android:radius="1dp"?
? android:bottomRightRadius="2dp" android:bottomLeftRadius="0dp" ?
? android:topLeftRadius="2dp" android:topRightRadius="0dp"/>

?

要按照上面的来,如果按照下面的竟然没结果

<?xml version="1.0" encoding="UTF-8"?> ?
<shape xmlns:android="http://schemas.android.com/apk/res/android"> ?
? ? <solid android:color="#555555"/> ? ??
?
? ? <stroke android:width="3dp"?
? ? ? ? ? ? android:color="#555555"?
? ? ? ? ? ? />?
?
? ? <padding android:left="1dp"?
? ? ? ? ? ? ?android:top="1dp"?
? ? ? ? ? ? ?android:right="1dp"?
? ? ? ? ? ? ?android:bottom="1dp"?
? ? ? ? ? ? ?/> ?
?
? ? <corners android:bottomRightRadius="0dp" android:bottomLeftRadius="2dp" ?
? ? ?android:topLeftRadius="2dp" android:topRightRadius="0dp"/> ?
</shape>?

别人说是2.1的bug

?

热点排行