Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
- <!-- Colored rectangle-->
- <item>
- <shape android:shape="rectangle">
- <size
- android:width="100dp"
- android:height="40dp" />
- <solid android:color="#5EB888" />
- <corners android:radius="0dp"/>
- </shape>
- </item>
- <!-- This rectangle for the top arrow edge -->
- <!-- Its color should be the same as the layout's background -->
- <item
- android:top="-40dp"
- android:bottom="65dp"
- android:right="-30dp">
- <rotate
- android:fromDegrees="45">
- <shape android:shape="rectangle">
- <solid android:color="#ffffff" />
- </shape>
- </rotate>
- </item>
- <!-- This rectangle for the lower arrow edge -->
- <!-- Its color should be the same as the layout's background -->
- <item
- android:top="65dp"
- android:bottom="-40dp"
- android:right="-30dp">
- <rotate
- android:fromDegrees="-45">
- <shape android:shape="rectangle">
- <solid android:color="#ffffff" />
- </shape>
- </rotate>
- </item>
- </layer-list>
- <Button
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:background="@drawable/arrow_shape"/>
- <?xml version="1.0" encoding="UTF-8"?>
- <layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
- <item android:width="50dp" android:height="10dp" android:right="6dp">
- <shape>
- <solid android:color="@android:color/holo_green_dark"/>
- <corners
- android:bottomLeftRadius="2dp"
- android:topLeftRadius="2dp"/>
- </shape>
- </item>
- <item android:width="7dp" android:height="7dp"
- android:left="50dp">
- <rotate android:fromDegrees="45"
- android:pivotX="0"
- android:pivotY="0">
- <shape>
- <solid android:color="@android:color/holo_green_dark"/>
- </shape>
- </rotate>
- </item>
- </layer-list>
Add Comment
Please, Sign In to add comment