Skip to content

Instantly share code, notes, and snippets.

@bingzer
Created August 30, 2013 18:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bingzer/6392924 to your computer and use it in GitHub Desktop.
Save bingzer/6392924 to your computer and use it in GitHub Desktop.
Card card card
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<solid android:color="#CCC" />
</shape>
</item>
<item android:bottom="2.5dp" android:left="1dp" android:right="1dp" android:top="0.5dp">
<shape android:shape="rectangle">
<solid android:color="#FFF" />
</shape>
</item>
</layer-list>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="170dp"
android:background="@drawable/card_background"
android:layout_marginRight="4dp"
android:layout_marginLeft="4dp"
android:layout_marginTop="4dp"
android:orientation="vertical"
tools:context=".activities.MainActivity" >
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment