mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
* Nearby: make list resize and display message when empty * refactored and renamed for clarity * refactoring and simplifying based on comments * refactoring and simplifying based on comments * removing vertical orientation
31 lines
1.1 KiB
XML
31 lines
1.1 KiB
XML
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:id="@+id/bottom_sheet"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:gravity="bottom"
|
|
app:behavior_hideable="true"
|
|
android:visibility="visible"
|
|
app:layout_behavior="@string/bottom_sheet_behavior"
|
|
android:background="@android:color/transparent">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@android:color/white">
|
|
|
|
<TextView
|
|
android:id="@+id/no_results_message"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="50dp"
|
|
android:layout_centerInParent="true"
|
|
android:visibility="gone"
|
|
android:text="@string/nearby_no_results"/>
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/rv_nearby_list"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"/>
|
|
</RelativeLayout>
|
|
</RelativeLayout>
|