Skip to content

Instantly share code, notes, and snippets.

@fnk0
Created October 16, 2016 08:20
Show Gist options
  • Save fnk0/c96ac9dd514878f8e50be96c4279051e to your computer and use it in GitHub Desktop.
Save fnk0/c96ac9dd514878f8e50be96c4279051e to your computer and use it in GitHub Desktop.
DetailsDescriptionPresenter view
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="16dp">
<TextView
android:id="@+id/movie_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxLines="1"
android:textSize="24sp"
android:textStyle="bold"
tools:text="Movie Title"/>
<TextView
android:id="@+id/tagline"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="16sp"
tools:text="Tagline"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:orientation="horizontal">
<TextView
android:id="@+id/runtime"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="16sp"
tools:text="2hr 12min"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="16sp"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:text="@string/_"
/>
<TextView
android:id="@+id/movie_year"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="16sp"
tools:text="(2015)"/>
</LinearLayout>
<LinearLayout
android:id="@+id/genres"
android:paddingBottom="8dp"
android:paddingTop="8dp"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
</LinearLayout>
<TextView
android:id="@+id/director_tv"
tools:text="Director: Some guy"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<TextView
android:id="@+id/overview_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="Overview:"
android:textSize="16sp"
android:textStyle="bold"/>
<TextView
android:id="@+id/overview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="8dp"
android:layout_marginTop="8dp"/>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment