Advertisement
Guest User

layout

a guest
Apr 1st, 2020
1,136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.50 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:tools="http://schemas.android.com/tools"
  4.    android:layout_width="match_parent"
  5.    android:layout_height="match_parent"
  6.    android:padding="16dp"
  7.    android:orientation="vertical">
  8.  
  9.     <TextView
  10.        android:layout_width="match_parent"
  11.        android:layout_height="wrap_content"
  12.        android:text="@string/username" />
  13.  
  14.     <EditText
  15.        android:id="@+id/edit1"
  16.        android:layout_width="match_parent"
  17.        android:layout_height="wrap_content"
  18.        android:lines="1" />
  19.  
  20.     <LinearLayout
  21.        android:layout_width="match_parent"
  22.        android:layout_height="wrap_content" >
  23.         <Button
  24.            android:id="@+id/btn1"
  25.            android:layout_marginLeft="150px"
  26.            android:layout_width="250px"
  27.            android:layout_height="wrap_content"
  28.            android:text="Panggil" />
  29.  
  30.         <Button
  31.            android:id="@+id/btn2"
  32.            android:layout_marginLeft="150px"
  33.            android:layout_width="250px"
  34.            android:layout_height="wrap_content"
  35.            android:text="Exit" />
  36.     </LinearLayout>
  37.  
  38.  
  39.     <TextView
  40.        android:id="@+id/txt1"
  41.        android:layout_width="match_parent"
  42.        android:layout_height="wrap_content"
  43.        android:gravity="center"
  44.        android:text="@string/result"
  45.        android:textSize="24sp"
  46.        android:textStyle="bold" />
  47. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement