Advertisement
Guest User

Untitled

a guest
Nov 16th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.09 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.constraint.ConstraintLayout
  3.    xmlns:android="http://schemas.android.com/apk/res/android"
  4.    xmlns:app="http://schemas.android.com/apk/res-auto"
  5.    xmlns:tools="http://schemas.android.com/tools"
  6.    android:layout_width="match_parent"
  7.    android:layout_height="match_parent"
  8.    android:layout_gravity="center"
  9.    tools:context=".SimpleNotes">
  10.  
  11.     <TextView
  12.        android:layout_width="match_parent"
  13.        android:layout_height="0dp"
  14.        app:layout_constraintTop_toTopOf="parent"
  15.        android:id="@+id/titleTV"
  16.        android:text="Simple Notes"
  17.        android:textAlignment="center"
  18.        />
  19.     <EditText
  20.        android:layout_width="match_parent"
  21.        android:layout_height="0dp"
  22.        app:layout_constraintTop_toBottomOf="@id/titleTV"
  23.        app:layout_constraintBottom_toTopOf="@id/exitBtn"
  24.        app:layout_constraintLeft_toLeftOf="parent"
  25.        app:layout_constraintRight_toRightOf="parent"
  26.        android:id="@+id/noteET"
  27.        />
  28.         <Button
  29.            android:layout_width="0dp"
  30.            android:layout_height="wrap_content"
  31.            android:text="Exit"
  32.            android:maxWidth="0dp"
  33.            app:layout_constraintHorizontal_chainStyle="spread"
  34.            app:layout_constraintLeft_toLeftOf="parent"
  35.            app:layout_constraintRight_toLeftOf="@+id/saveBtn"
  36.            android:id="@+id/exitBtn"
  37.            app:layout_constraintTop_toBottomOf="@id/noteET"
  38.            app:layout_constraintBottom_toBottomOf="parent"
  39.            android:onClick="sendExit"/>
  40.         <Button
  41.            android:layout_width="0dp"
  42.            android:layout_height="wrap_content"
  43.            android:text="Save"
  44.            app:layout_constraintLeft_toRightOf="@id/exitBtn"
  45.            app:layout_constraintRight_toRightOf="parent"
  46.            app:layout_constraintTop_toBottomOf="@id/noteET"
  47.            android:id="@id/saveBtn"
  48.            android:onClick="sendSave"
  49.            app:layout_constraintBottom_toBottomOf="parent"/>
  50.  
  51.  
  52.  
  53.  
  54. </android.support.constraint.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement