Toolbar'ın altına category title content alanlarını yerleştir, content alaı ekranın…
- User
Toolbar'ın altına category title content alanlarını yerleştir, content alaı ekranın altına kadar genişlesin, googlekeep not ekleme ekranı gibi olacak. Content içeriği kaydırıldığında bottomappbar gizlensin-> <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" tools:context=".fragment_edit">
<!-- Fragment Toolbar --> <com.google.android.material.appbar.MaterialToolbar android:id="@+id/fragmentToolbar" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" android:background="?attr/colorPrimary" android:theme="?attr/actionBarTheme" app:menu="@menu/fragment_options_menu" app:title="Edit Flashcard" /> <!-- Scrollable Content --> <androidx.core.widget.NestedScrollView android:layout_width="match_parent" android:layout_height="match_parent" app:layout_behavior="@string/appbar_scrolling_view_behavior"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" android:padding="16dp" android:background="@color/backgroundColor"> <EditText android:id="@+id/editTextCategory" android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="Category" android:inputType="text" android:minHeight="48dp" /> <EditText android:id="@+id/editTextTitle" android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="Title" android:inputType="text" android:minHeight="48dp" /> <EditText android:id="@+id/editTextContent" android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="Content" android:inputType="textMultiLine" android:minLines="3" android:minHeight="48dp" /> <Button android:id="@+id/buttonUpdateFlashcard" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Update Flashcard" /> </LinearLayout> </androidx.core.widget.NestedScrollView> <!-- Bottom App Bar --> <com.google.android.material.bottomappbar.BottomAppBar android:id="@+id/bottomAppBar" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" android:layout_gravity="bottom" app:fabCradleMargin="10dp" app:fabCradleRoundedCornerRadius="10dp" app:hideOnScroll="true" app:backgroundTint="@color/primaryColor"> <!-- Ensure color setting --> <TextView android:id="@+id/textViewTimestamp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Timestamp" android:textColor="@android:color/white" android:layout_gravity="center" /> </com.google.android.material.bottomappbar.BottomAppBar> - Assistant