Skip to content

Instantly share code, notes, and snippets.

@RyanRSA
Created December 19, 2018 15:13
Show Gist options
  • Save RyanRSA/272aaeab0ff800401981601ef8ec0123 to your computer and use it in GitHub Desktop.
Save RyanRSA/272aaeab0ff800401981601ef8ec0123 to your computer and use it in GitHub Desktop.
Cute Card
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:orientation="horizontal"
android:paddingBottom="4dp"
android:background="@android:color/black">
<ImageView
android:layout_width="0dp"
android:layout_weight="2"
android:layout_height="match_parent"
android:scaleType="centerCrop"
android:src="@drawable/cutebatman4"/>
<ImageView
android:layout_width="0dp"
android:layout_weight="3"
android:layout_height="match_parent"
android:scaleType="fitXY"
android:src="@drawable/pow"/>
</LinearLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="2"
android:background="@android:color/black"
android:paddingBottom="4dp">
<LinearLayout
android:id="@+id/mid"
android:layout_width="180dp"
android:layout_height="wrap_content"
android:orientation="vertical">
<ImageView
android:id="@+id/bat5"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:layout_weight="0.8"
android:scaleType="fitXY"
android:background="@android:color/black"
android:src="@drawable/cutebatman5"
android:paddingBottom="4dp"/>
<ImageView
android:id="@+id/bat7"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:layout_weight="0.5"
android:scaleType="fitXY"
android:background="@android:color/black"
android:src="@drawable/cutebatman7"/>
</LinearLayout>
<ImageView
android:id="@+id/bat3"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="fitXY"
android:layout_toRightOf="@id/mid"
android:src="@drawable/cutebatman3"/>
</RelativeLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:orientation="horizontal">
<ImageView
android:layout_width="0dp"
android:layout_weight="2"
android:layout_height="match_parent"
android:src="@drawable/zaap"/>
<ImageView
android:layout_width="0dp"
android:layout_weight="5"
android:layout_height="match_parent"
android:src="@drawable/cutebatman2"/>
</LinearLayout>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment