android - Button background layer list not drawing properly -


i have defined layer-list drawable background button, it's not displayed correctly, here's code , resulting image

<layer-list xmlns:android="http://schemas.android.com/apk/res/android">     <item>         <shape android:shape="rectangle">             <corners android:radius="@dimen/button.login.radius" />             <solid android:color="#33455964"/>         </shape>     </item>      <item android:bottom="5dp">         <shape android:shape="rectangle">             <corners android:radius="@dimen/button.login.radius" />             <solid android:color="#26a69a" />         </shape>     </item> </layer-list> 

resulting style

why there different color on corners?

looks perfect on emulator (nexus s api level 19):

enter image description here

seems bug in preview.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -