Advertisement
eddisusantoo

Linearlayout

Sep 18th, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.45 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    xmlns:app="http://schemas.android.com/apk/res-auto"
  4.    xmlns:tools="http://schemas.android.com/tools"
  5.    android:layout_width="match_parent"
  6.    android:layout_height="match_parent"
  7.    android:orientation="vertical"
  8.    tools:context="com.example.rootkit33.belajarandroid.MainActivity">
  9.  
  10.  
  11.     <LinearLayout
  12.        android:layout_width="match_parent"
  13.        android:layout_height="wrap_content"
  14.        android:orientation="vertical">
  15.  
  16.         <Button
  17.            android:layout_width="match_parent"
  18.            android:layout_height="wrap_content"
  19.            android:text="Simpan"/>
  20.  
  21.         <Button
  22.            android:layout_width="match_parent"
  23.            android:layout_height="wrap_content"
  24.            android:text="Batal"/>
  25.  
  26.  
  27.     </LinearLayout>
  28.  
  29.     <LinearLayout
  30.        android:layout_width="match_parent"
  31.        android:layout_height="wrap_content"
  32.        android:orientation="horizontal">
  33.  
  34.         <Button
  35.            android:layout_width="match_parent"
  36.            android:layout_height="wrap_content"
  37.            android:text="Simpan"
  38.            android:layout_weight="1"/>
  39.  
  40.         <Button
  41.            android:layout_width="match_parent"
  42.            android:layout_height="wrap_content"
  43.            android:text="Batal"
  44.            android:layout_weight="1"/>
  45.  
  46.  
  47.     </LinearLayout>
  48.  
  49. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement