mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 21:03:54 +01:00
* Fix #2104 by removing delete recent searches button when list is empty * Changed text to 'No recent searches' when the list is empty
56 lines
2.1 KiB
XML
56 lines
2.1 KiB
XML
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
tools:context="fr.free.nrw.commons.explore.recentsearches.RecentSearchesFragment">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="?android:windowBackground"
|
|
android:orientation="vertical"
|
|
android:id="@+id/recent_searches">
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<TextView
|
|
android:id="@+id/recent_searches_text_view"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="48dp"
|
|
android:layout_gravity="start"
|
|
android:gravity="center_vertical"
|
|
android:paddingLeft="16dp"
|
|
android:paddingRight="16dp"
|
|
android:text="@string/search_recent_header"
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
android:textStyle="bold" />
|
|
|
|
<ImageView
|
|
android:id="@+id/recent_searches_delete_button"
|
|
android:layout_width="48dp"
|
|
android:layout_height="48dp"
|
|
android:layout_gravity="end"
|
|
android:background="?attr/actionBarItemBackground"
|
|
android:clickable="true"
|
|
android:longClickable="true"
|
|
android:scaleType="centerInside"
|
|
app:srcCompat="@drawable/ic_delete_grey_700_24dp" />
|
|
|
|
</FrameLayout>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0.5dp"
|
|
android:background="@color/opak_middle_grey" />
|
|
|
|
<ListView
|
|
android:id="@+id/recent_searches_list"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</FrameLayout>
|