Android: XML LayerList not showing correctly on API 10 device -
so create arrow facing right popup window using wonderful example arrow have problem using api 10 devices. tried on api 16 , upwards , showing correctly.
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" > <item> <shape> <solid android:color="@android:color/transparent"/> <size android:width="2dp" android:height="50dp"/> </shape> </item> <item android:bottom="20dp"> <rotate android:fromdegrees="-45" android:todegrees="45"> <shape android:shape="rectangle"> <solid android:color="@android:color/black"/> <corners android:radius="1dp" android:bottomrightradius="0dp" android:bottomleftradius="0dp"/> </shape> </rotate> </item> <item android:top="20dp"> <rotate android:fromdegrees="45" android:todegrees="45"> <shape android:shape="rectangle"> <solid android:color="@android:color/black"/> <corners android:radius="1dp" android:toprightradius="0dp" android:topleftradius="0dp"/> </shape> </rotate> </item> </layer-list>
this on api 22 device image1
and on api 10 deviceimage2
i'm using 'src' on imageview , have set different sizes according screen. appreciated.
Comments
Post a Comment