Skip to content

Instantly share code, notes, and snippets.

@VDenis
Created November 1, 2015 13:30
Show Gist options
  • Save VDenis/905e90ceadf6e0f8a0f9 to your computer and use it in GitHub Desktop.
Save VDenis/905e90ceadf6e0f8a0f9 to your computer and use it in GitHub Desktop.
<ScrollView
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">
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
>
<TextView
android:id="@+id/detail_movie_title"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/colorAccent"
android:padding="30dp"
android:textColor="@android:color/primary_text_dark"
android:textSize="24sp"
tools:text="@string/debug_text"/>
<ImageView
android:id="@+id/detail_movie_image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/detail_movie_title"
android:layout_marginLeft="10dp"
android:layout_marginTop="2dp"
android:scaleType="center"
tools:src="@mipmap/ic_launcher"
/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginLeft="10dp"
android:layout_toEndOf="@+id/detail_movie_image"
android:layout_toRightOf="@+id/detail_movie_image"
android:gravity="center_vertical"
android:orientation="vertical">
<TextView
android:id="@+id/detail_movie_voteAverage"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:text="@string/debug_text"/>
<TextView
android:id="@+id/detail_movie_popularity"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:text="@string/debug_text"/>
<TextView
android:id="@+id/detail_movie_releseDate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:text="@string/debug_text"/>
</LinearLayout>
<TextView
android:id="@+id/detail_movie_overview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/detail_movie_image"
android:layout_margin="5dp"
tools:text="@string/debug_text"/>
</RelativeLayout>
</ScrollView>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment