Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<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