Skip to content

Instantly share code, notes, and snippets.

@muzafakar
Created October 4, 2019 06:02
Show Gist options
  • Save muzafakar/a6e807be333d9494a31467582310f262 to your computer and use it in GitHub Desktop.
Save muzafakar/a6e807be333d9494a31467582310f262 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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"
tools:context=".MainActivity">
<ImageView
android:id="@+id/img"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:src="@drawable/ic_launcher_background" />
<TextView
android:id="@+id/tvName"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toEndOf="@id/img"
android:text="Nama: Zulfakar" />
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@id/img">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/dummy" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/dummy" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/dummy" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/dummy" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/dummy" />
</LinearLayout>
</ScrollView>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment