Skip to content

Instantly share code, notes, and snippets.

@patrick-elmquist
Last active November 25, 2018 20:11
Show Gist options
  • Save patrick-elmquist/6f9d97dc24fc0f41ed30467432357771 to your computer and use it in GitHub Desktop.
Save patrick-elmquist/6f9d97dc24fc0f41ed30467432357771 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
... >
<ImageView
android:id="@+id/poster"
android:layout_width="match_parent"
android:layout_height="match_parent"
... />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:background="@android:color/white"
android:paddingStart="@dimen/text_offset"
android:elevation="@dimen/thumb_elevation"
android:orientation="vertical"
... >
<TextView
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
... />
<TextView
android:id="@+id/description"
android:layout_width="match_parent"
android:layout_height="wrap_content"
... />
</LinearLayout>
<ImageView
android:id="@+id/thumb"
android:layout_width="@dimen/thumb_width"
android:layout_height="@dimen/thumb_height"
android:layout_gravity="bottom|start"
android:layout_margin="@dimen/spacing_large"
android:elevation="@dimen/thumb_elevation"
... />
</FrameLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment