Skip to content

Instantly share code, notes, and snippets.

@ninjachen
Created July 27, 2017 10:15
Show Gist options
  • Save ninjachen/5a443eb74a93678584b7989cf56dc0cd to your computer and use it in GitHub Desktop.
Save ninjachen/5a443eb74a93678584b7989cf56dc0cd to your computer and use it in GitHub Desktop.
android layout with top and bottom boarder
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item>
<shape android:shape="rectangle" >
<!--border color-->
<solid android:color="@color/d8grey"/>
</shape>
</item>
<item android:bottom="1dp" android:top="1dp">
<shape android:shape="rectangle" >
<!--background color-->
<solid android:color="@color/pure_white" />
</shape>
</item>
</layer-list>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment