I have the folowing drawable,
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<corners android:radius="3dp"/>
<padding android:left="1dp" android:right="1dp" android:top="1dp" android:bottom="1dp"/>
<stroke android:width="1dp" android:color="#e4e4e4"/>
</shape>
"It supposed" to draw a border when set on background, actually on (Android 4.3 /goole nexus 7) it does , but unfortunately on (Android 4.1.2/ Samsung galaxy tab 10") it just fill all the background with the color
If someone can tell me what I'm doing wrong, or if someone has an xml drawable for border, I will be very thankful :=)
here is the solution with the same drawable
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<solid android:color="@android:color/transparent" />
<corners android:radius="3dp"/>
<stroke android:width="1dip" android:color="#e2e2e2"/>
</shape>
I needed just to specify solid color :
<solid android:color="@android:color/transparent" />
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