Skip to content

Instantly share code, notes, and snippets.

@jpotts18
Created July 24, 2013 00:31
Show Gist options
  • Save jpotts18/6067257 to your computer and use it in GitHub Desktop.
Save jpotts18/6067257 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/outer"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="20dp">
<ImageView
android:id="@+id/poster"
android:layout_height="90dp"
android:layout_width="60dp"
android:contentDescription="@string/content"
android:background="@drawable/hunger"/>
<TextView
android:id="@+id/title"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/poster"
android:layout_alignRight="@id/outer"
android:gravity="center_horizontal"
android:layout_marginLeft="15dp"
android:textSize="9pt"
android:text="@string/hunger_games" />
<ImageView
android:id="@+id/tomato"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_alignBottom="@+id/poster"
android:layout_alignLeft="@+id/title"
android:background="@drawable/fresh"
android:contentDescription="@string/content" />
<TextView
android:id="@+id/fresh_percent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/tomato"
android:layout_marginLeft="33dp"
android:layout_toRightOf="@+id/tomato"
android:text="@string/fresh_percent"
android:textSize="10pt" />
<ImageView
android:id="@+id/audience"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_alignBottom="@+id/fresh_percent"
android:layout_marginLeft="24dp"
android:layout_toRightOf="@+id/fresh_percent"
android:background="@drawable/splat"
android:contentDescription="@string/content" />
<TextView
android:id="@+id/audience_percent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/audience"
android:layout_alignRight="@+id/title"
android:text="@string/audience_percent"
android:textSize="10pt" />
<TextView
android:id="@+id/synopsis"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/poster"
android:layout_below="@+id/poster"
android:layout_marginTop="20dp"
android:text="@string/synopsis" />
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment