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

image1

and on api 10 deviceimage2

image2

i'm using 'src' on imageview , have set different sizes according screen. appreciated.


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -