Android L Is Ignoring Shapes As Drawable Background
I'm testing Android L Preview on my Nexus 5. I've got problem with my app. I've got some TextViews with background set: android:background='@drawable/rounded_textview' And 'rounde
Solution 1:
I found that wrapping the shape in a selector and item tag made it work
<selectorxmlns:android="http://schemas.android.com/apk/res/android"><item><shapeandroid:shape="rectangle"><solidandroid:color="@color/gray" /><cornersandroid:bottomLeftRadius="3dp"android:topRightRadius="3dp"android:topLeftRadius="3dp"android:bottomRightRadius="3dp" /></shape></item></selector>
Solution 2:
Just use android:radius, not use each corner options. I had a same problem, but I was able to solve the problem using this way.
<?xml version="1.0" encoding="utf-8"?><shapexmlns:android="http://schemas.android.com/apk/res/android"android:shape="rectangle"android:padding="3dp"><solidandroid:color="#999999"/><cornersandroid:radius="2dp"/></shape>
Post a Comment for "Android L Is Ignoring Shapes As Drawable Background"