simplenotesdroid/Resources/layout/activity_note.xml

30 lines
1.5 KiB
XML

<?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/toolbar2"
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" />
</RelativeLayout>
</androidx.coordinatorlayout.widget.CoordinatorLayout>