我有以下的可绘制对象:
<?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>
“它应该”在设置背景时绘制边框,实际上在(Android 4.3 / Google Nexus 7)上确实如此,但不幸的是,在(Android 4.1.2 / Samsung Galaxy Tab 10”)上它只是填充整个背景颜色。
如果有人能告诉我我做错了什么,或者如果有人有一个用于边框的xml drawable,我将非常感激:=)
5dp
,请尝试。 - Raghunandan