I have problem with the corners tag.
This is my shape file.
<stroke
android:width="1dp"
android:color="#ff999999" />
<size android:height="40dp" />
<gradient
android:angle="90"
android:centerColor="#f5f5f5"
android:endColor="#fcfcfc"
android:startColor="#efefef"
android:type="linear" />
<corners
android:bottomLeftRadius="0dip"
android:bottomRightRadius="8dip"
android:topLeftRadius="8dip"
android:topRightRadius="0dip" />
But when I set it for view's background. It display different shape in Android 2.2 and Android 4.0.3 . When it is running on Android 4.0.3 :running on Android 4.0.3 And on Android 2.2 :Running on Android 2.2
Please see "ANNOUNCE" button. Do you know why ? And how can I fix it ? Please help me ! Sorry because my English is not really well.
This was a bug in pre-API 12 versions of the SDK, where the bottom left and bottom right radii were reversed. What you can do (and there is a lot more information at this link) is create a res/drawable-v12
folder, and copy these drawables into it with the radii reversed (i.e. bottom left radius becomes bottom right radius, and vice versa), and these drawables will be selected automatically for devices above API 12.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With