Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <android.support.constraint.ConstraintLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_gravity="center"
- tools:context=".SimpleNotes">
- <TextView
- android:layout_width="match_parent"
- android:layout_height="0dp"
- app:layout_constraintTop_toTopOf="parent"
- android:id="@+id/titleTV"
- android:text="Simple Notes"
- android:textAlignment="center"
- />
- <EditText
- android:layout_width="match_parent"
- android:layout_height="0dp"
- app:layout_constraintTop_toBottomOf="@id/titleTV"
- app:layout_constraintBottom_toTopOf="@id/exitBtn"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toRightOf="parent"
- android:id="@+id/noteET"
- />
- <Button
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:text="Exit"
- android:maxWidth="0dp"
- app:layout_constraintHorizontal_chainStyle="spread"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toLeftOf="@+id/saveBtn"
- android:id="@+id/exitBtn"
- app:layout_constraintTop_toBottomOf="@id/noteET"
- app:layout_constraintBottom_toBottomOf="parent"
- android:onClick="sendExit"/>
- <Button
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:text="Save"
- app:layout_constraintLeft_toRightOf="@id/exitBtn"
- app:layout_constraintRight_toRightOf="parent"
- app:layout_constraintTop_toBottomOf="@id/noteET"
- android:id="@id/saveBtn"
- android:onClick="sendSave"
- app:layout_constraintBottom_toBottomOf="parent"/>
- </android.support.constraint.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement