Skip to content

Instantly share code, notes, and snippets.

@meeDamian
Created July 24, 2012 19:23
Show Gist options
  • Save meeDamian/3172062 to your computer and use it in GitHub Desktop.
Save meeDamian/3172062 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal"
android:baselineAligned="false"
android:background="@drawable/background">
<RelativeLayout
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:layout_weight="1"
android:paddingRight="10dp"
android:padding="1dp">
<ImageView android:id="@+id/h1_8"
android:layout_height="@dimen/square"
android:layout_width="@dimen/square"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
android:contentDescription="@string/empty" />
<ImageView android:id="@+id/h1_4"
android:layout_height="@dimen/square"
android:layout_width="@dimen/square"
android:layout_below="@id/h1_8"
android:contentDescription="@string/empty" />
<ImageView android:id="@+id/h0_8"
android:layout_width="@dimen/square"
android:layout_height="@dimen/square"
android:layout_alignParentTop="true"
android:layout_alignParentRight="true"
android:contentDescription="@string/on"
android:src="@drawable/on_blue" />
<ImageView android:id="@+id/h0_4"
android:layout_width="@dimen/square"
android:layout_height="@dimen/square"
android:layout_marginTop="@dimen/spacing"
android:layout_alignParentRight="true"
android:layout_below="@id/h0_8"
android:contentDescription="@string/on"
android:src="@drawable/on_blue" />
<ImageView android:id="@+id/h1_1"
android:layout_width="@dimen/square"
android:layout_height="@dimen/square"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:contentDescription="@string/on"
android:src="@drawable/off_gray" />
<ImageView android:id="@+id/h1_2"
android:layout_width="@dimen/square"
android:layout_height="@dimen/square"
android:layout_marginBottom="@dimen/spacing"
android:layout_alignParentLeft="true"
android:layout_above="@id/h1_1"
android:contentDescription="@string/on"
android:src="@drawable/off_gray" />
<ImageView android:id="@+id/h0_1"
android:layout_width="@dimen/square"
android:layout_height="@dimen/square"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:contentDescription="@string/on"
android:src="@drawable/off_gray" />
<ImageView android:id="@+id/h0_2"
android:layout_width="@dimen/square"
android:layout_height="@dimen/square"
android:layout_marginBottom="@dimen/spacing"
android:layout_alignParentRight="true"
android:layout_above="@id/h1_1"
android:contentDescription="@string/on"
android:src="@drawable/off_gray" />
</RelativeLayout>
<RelativeLayout
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:layout_weight="1"
android:background="#0f0">
</RelativeLayout>
<RelativeLayout
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:layout_weight="1"
android:background="#00f">
</RelativeLayout>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment