
Anda dapat mengatur tampilan dalam satu kolom atau dalam satu baris, baik secara horisontal maupun vertikal.
berikut contoh sintaksnya yang diterapkan pada file xml (layout).
<?xml version=”1.0” encoding=”utf-8”?>
<LinearLayout
xmlns:android=
”http://schemas.android.com/apk/res/android”
android:layout_width=”fill_parent”
android:layout_height=”fill_parent”
android:orientation=”vertical” >
<TextView
android:layout_width=”fill_parent”
android:layout_height=”wrap_content”
android:text=”@string/hello” />
</LinearLayout>Sumber : Master Android (App)
