Skip to content

Instantly share code, notes, and snippets.

@mnafian
Created October 16, 2015 10:28
Show Gist options
  • Save mnafian/bbacb420fe9b8e1ffc67 to your computer and use it in GitHub Desktop.
Save mnafian/bbacb420fe9b8e1ffc67 to your computer and use it in GitHub Desktop.
SampleLinearLayout 2 vertical
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:background="@drawable/cover"
android:orientation="vertica"> <--! dibuat vertical, ini root layout -->
<LinearLayout
android:id="@+id/layout1"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:layout_margin="10dp"
android:background="@drawable/backgroud"></LinearLayout>
<LinearLayout
android:id="@+id/layout2"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:layout_margin="10dp"
android:background="@drawable/backgroud"></LinearLayout>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment