session-android/res/layout/conversation_list_fragment.xml

83 lines
3.4 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout
2017-11-12 12:39:22 -08:00
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
2017-11-12 12:39:22 -08:00
android:orientation="vertical">
2017-11-13 09:31:01 -08:00
<TextView android:id="@+id/empty_search"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="100dp"
android:gravity="center"
android:textSize="18sp"
android:padding="16dp"
android:visibility="invisible"
tools:text="No results found for 'foo'"/>
<LinearLayout android:id="@+id/empty_state"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:orientation="vertical"
android:visibility="gone"
tools:visibility="visible">
2017-11-12 12:39:22 -08:00
<ImageView android:id="@+id/empty"
android:layout_width="wrap_content"
2019-02-13 11:52:55 -08:00
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
2019-07-18 15:59:41 +10:00
tools:src="@drawable/conversation_list_empty_state"
android:visibility="gone" />
2017-11-12 12:39:22 -08:00
2019-02-13 11:52:55 -08:00
<TextView android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="32dp"
android:layout_marginEnd="32dp"
2019-02-13 11:52:55 -08:00
android:layout_marginTop="20dp"
android:layout_marginBottom="20dp"
style="@style/Signal.Text.Body"
2019-07-18 15:59:41 +10:00
android:text="@string/activity_conversation_list_empty_state_message"
2019-02-13 11:52:55 -08:00
android:gravity="center" />
</LinearLayout>
<LinearLayout android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:visibility="gone">
<org.thoughtcrime.securesms.components.reminder.ReminderView
android:id="@+id/reminder"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbars="vertical"
android:nextFocusDown="@+id/fab"
android:nextFocusForward="@+id/fab"
tools:listitem="@layout/conversation_list_item_view" />
</LinearLayout>
2017-11-12 12:39:22 -08:00
<org.thoughtcrime.securesms.components.registration.PulsingFloatingActionButton
android:id="@+id/fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2015-11-26 19:04:27 +01:00
android:layout_gravity="bottom|end"
android:layout_margin="16dp"
android:src="@drawable/ic_create_white_24dp"
android:focusable="true"
android:contentDescription="@string/conversation_list_fragment__fab_content_description"/>
2015-01-20 21:26:58 -10:00
2017-11-12 12:39:22 -08:00
</androidx.coordinatorlayout.widget.CoordinatorLayout>