Advertisement
Baru_Berbagi

activity_edit.xml

Dec 5th, 2020
3,339
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.62 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=".EditActivity">
  9.  
  10.  
  11.     <ScrollView
  12.        android:layout_width="match_parent"
  13.        android:layout_height="match_parent"
  14.        android:layout_weight="1"
  15.        android:fillViewport="true">
  16.         <EditText
  17.            android:id="@+id/etText"
  18.            android:layout_width="match_parent"
  19.            android:layout_height="match_parent"
  20.            android:gravity="top|left"/>
  21.     </ScrollView>
  22.  
  23.     <LinearLayout
  24.        android:id="@+id/linearLayout"
  25.        android:layout_width="match_parent"
  26.        android:layout_height="wrap_content"
  27.        android:orientation="horizontal">
  28.  
  29.         <Button
  30.            android:id="@+id/btnSave"
  31.            android:layout_width="match_parent"
  32.            android:layout_height="match_parent"
  33.            android:layout_weight="1"
  34.            android:text="Save"
  35.            android:background="@drawable/add_button_background"/>
  36.  
  37.         <Button
  38.            android:id="@+id/btnCencel"
  39.            android:layout_width="match_parent"
  40.            android:layout_height="match_parent"
  41.            android:layout_gravity="bottom"
  42.            android:layout_weight="1"
  43.            android:text="Cencel"
  44.            android:background="@drawable/add_button_background"/>
  45.  
  46.     </LinearLayout>
  47.  
  48.  
  49. </LinearLayout>
  50.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement