Skip to content

Instantly share code, notes, and snippets.

@adammb86
Created March 19, 2019 04:38
Show Gist options
  • Save adammb86/1462c4d7cff04c142d9d9439a8320ca6 to your computer and use it in GitHub Desktop.
Save adammb86/1462c4d7cff04c142d9d9439a8320ca6 to your computer and use it in GitHub Desktop.
BiodataDiriLayout
<?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_margin="@dimen/medium_dimen"
android:orientation="vertical"
tools:context=".MainActivity">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/img_foto"
android:layout_width="150dp"
android:layout_height="300dp"
android:contentDescription="@string/foto_diri"
android:src="@drawable/avengers" />
<TextView
android:id="@+id/tv_nama"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/small_dimen"
android:layout_marginTop="34dp"
android:layout_toRightOf="@id/img_foto"
android:text="@string/nama"
android:textSize="20sp"
android:textStyle="bold" />
<TextView
android:id="@+id/tv_tanggal_lahir"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/tv_nama"
android:layout_marginLeft="@dimen/small_dimen"
android:layout_toRightOf="@id/img_foto"
android:text="@string/tanggal_lahir"
android:textSize="20sp" />
<TextView
android:id="@+id/tv_jenis_kelamin"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/tv_tanggal_lahir"
android:layout_marginLeft="@dimen/small_dimen"
android:layout_toRightOf="@id/img_foto"
android:text="@string/jenis_kelamin"
android:textSize="20sp" />
</RelativeLayout>
<TextView
android:id="@+id/tv_deskripsi_singkat"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Deskripsi Singkat"
android:textSize="30sp"
android:textStyle="bold" />
<ScrollView
android:layout_width="match_parent"
android:layout_height="200dp">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/deskripsi_singkat"
android:layout_margin="@dimen/medium_dimen"/>
</ScrollView>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/copyright"
android:textStyle="italic"
android:layout_marginTop="@dimen/small_dimen"
android:layout_marginStart="@dimen/small_dimen"/>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment