feat: added clearhistory button (#416)

This commit is contained in:
ibo 2024-06-14 13:07:38 +02:00 committed by GitHub
parent 124c8f5ed7
commit 899af3ee1a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 55 additions and 1 deletions

View file

@ -117,6 +117,32 @@
app:drawableTint="?attr/colorPrimary" />
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:id="@+id/clearHistory"
android:layout_width="wrap_content"
android:layout_height="48dp"
android:layout_gravity="center"
android:padding="8dp"
app:boxStrokeColor="@color/text_input_layout_stroke_color"
app:cardBackgroundColor="@color/nav_bg"
app:cardCornerRadius="16dp"
app:contentPadding="4dp"
app:contentPaddingLeft="8dp"
app:contentPaddingRight="8dp"
tools:ignore="ContentDescription,TextContrastCheck">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:drawablePadding="4dp"
android:fontFamily="@font/poppins_bold"
android:text="@string/clear_history"
android:textColor="?attr/colorPrimary"
app:drawableStartCompat="@drawable/ic_round_history_24"
app:drawableTint="?attr/colorPrimary" />
</androidx.cardview.widget.CardView>
<ani.dantotsu.FadingEdgeRecyclerView
android:id="@+id/searchChipRecycler"
android:layout_width="0dp"