xml - Border shown in Android Studio but not on a real device -
xml - Border shown in Android Studio but not on a real device -
i'm having unusual issue. i'm using next code background of layout
<?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item android:bottom="1dp" android:left="1dp" android:right="1dp" android:top="1dp"> <shape android:shape="rectangle"> <solid android:color="#ffffff" /> <corners android:radius="5dp" /> <stroke android:width="2dp" android:color="#23000000" /> </shape> </item> </layer-list>
in android studio looks this
but on real device no border shown whatsoever.
at first thought colors may simillar, used black border color, same result occurs.
this layout
<relativelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/jobbox_container" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingbottom="10dp" android:paddingleft="10dp" android:paddingright="10dp" android:background="@null"> <relativelayout android:id="@+id/jobbox" android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="@drawable/shadow_shape" android:minheight="100dp"> ...
can tell me doing wrong?
it seems sort of bug android studio. although changed drawable xml, old 1 (and still haven't figured out where) still beingness used. checked if had duplicate files in drawables, found out. invalidate cache , restart didn't prepare issue neither.
so prepare this, simple refactor>rename suffice.
android xml shapes
Comments
Post a Comment