simplenotesdroid/Resources/layout/activity_note.xml

31 lines
1.7 KiB
XML
Raw Normal View History

2023-10-29 17:07:09 +00:00
<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout 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:fitsSystemWindows="true"
tools:context=".NoteActivity">
<com.google.android.material.appbar.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fitsSystemWindows="true">
<com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize" />
</com.google.android.material.appbar.AppBarLayout>
<RelativeLayout
app:layout_behavior="@string/appbar_scrolling_view_behavior" android:layout_width="match_parent" android:layout_height="match_parent">
<com.google.android.material.textfield.TextInputEditText android:hint="@string/note_title" android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/note_title" />
<com.google.android.material.textfield.TextInputEditText android:hint="@string/note_body" android:layout_below="@+id/note_title" android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/note_body" />
<Button android:id="@+id/note_save" android:layout_below="@+id/note_body" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/note_save"/>
</RelativeLayout>
</androidx.coordinatorlayout.widget.CoordinatorLayout>