linearlayout'u toolbarın altına yerleştir, ve content ekranın altına kadar uzasın,…
- User
linearlayout'u toolbarın altına yerleştir, ve content ekranın altına kadar uzasın, content alanı kaydırıldğında bottom appbar kaybolsun. xml'i iyileştir -> <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">
code<LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:padding="16dp" android:background="@color/backgroundColor" android:focusable="true" android:clickable="true"> <EditText android:id="@+id/editTextCategory" android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="Category" android:inputType="text" /> <EditText android:id="@+id/editTextTitle" android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="Title" android:inputType="text" /> <EditText android:id="@+id/editTextContent" android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="Content" android:inputType="textMultiLine" android:minLines="3" /> <Button android:id="@+id/buttonUpdateFlashcard" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Update Flashcard" /> </LinearLayout> <!-- 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" app:layout_anchorGravity="top" /> <!-- Bottom App Bar --> <com.google.android.material.bottomappbar.BottomAppBar android:id="@+id/bottomAppBar" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="bottom" app:fabCradleMargin="10dp" app:fabCradleRoundedCornerRadius="10dp" app:hideOnScroll="false"> <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
- User
<androidx.coordinatorlayout.widget.CoordinatorLayout>: Extraneous text in resource files editTextTitle : Touch target size too smalleditTextCategory : Touch target size too small
- Assistant
- User
- Assistant