Skip to content

Instantly share code, notes, and snippets.

@adammb86
Created March 19, 2019 02:44
Show Gist options
  • Save adammb86/6884d8ed60ca23d4864d448782cc769c to your computer and use it in GitHub Desktop.
Save adammb86/6884d8ed60ca23d4864d448782cc769c to your computer and use it in GitHub Desktop.
AvengersLinearLayout
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="@dimen/activity_horizontal_margin"
android:layout_marginTop="@dimen/activity_vertical_margin"
android:layout_marginRight="@dimen/activity_horizontal_margin"
android:layout_marginBottom="@dimen/activity_vertical_margin"
android:orientation="vertical"
tools:context=".MainActivity">
<ImageView
android:id="@+id/img_Poster"
android:layout_width="150dp"
android:layout_height="300dp"
android:layout_gravity="center"
android:layout_margin="@dimen/activity_vertical_margin"
android:contentDescription="@string/poster_avengers_endgame"
android:src="@drawable/avengers" />
<TextView
android:id="@+id/tv_judul"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="@dimen/small_dimen"
android:text="@string/avengers_endgame"
android:textAlignment="center"
android:textSize="30sp"
android:textStyle="bold"
android:textColor="@color/colorPrimary"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="2019-04-24"
android:textSize="20sp"
android:textAlignment="center"
android:id="@+id/tv_tanggalmain"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/avengers_description"
android:layout_margin="@dimen/small_dimen"
/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment