Skip to content

Conversation

@AaronChanSunny
Copy link

In ‘Creating a Layer List’ part, should specify bottom shape's size:

<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
    <item>
      <shape 
        android:shape="rectangle">
            <size android:width="280dp" android:height="140dp"/>
            <stroke android:width="1dp" android:color="#585858" />
            <solid android:color="#FF9009" />
            <padding android:bottom="1dp"/>
        </shape>
   </item>
   <item android:left="10dp" android:top="20dp" android:bottom="20dp" android:right="150dp">
      <shape 
        android:shape="oval">
            <stroke android:width="1dp" android:color="#ffffff" />
            <solid android:color="#118C4E" />
            <padding android:bottom="1dp"/>
        </shape>
   </item>
   <item android:left="150dp" android:top="20dp" android:bottom="20dp" android:right="10dp">
      <shape 
        android:shape="rectangle">
            <stroke android:width="1dp" android:color="#ffffff" />
            <solid android:color="#C1E1A6" />
            <padding android:bottom="1dp"/>
        </shape>
   </item>
</layer-list>

@nesquena
Copy link
Member

nesquena commented Mar 7, 2016

Agreed, feel free to make any changes directly here: https://github.com/codepath/android_guides/wiki/Drawables/_edit

@nesquena nesquena closed this Mar 7, 2016
@AaronChanSunny
Copy link
Author

Updated Drawables.md file on the codepath repo :-)

@nesquena
Copy link
Member

nesquena commented Mar 8, 2016

Ok thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants