mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-26 19:37:36 +00:00
Add empty state for conversation list
This commit is contained in:
BIN
res/drawable-hdpi/conversation_list_empty_state.png
Normal file
BIN
res/drawable-hdpi/conversation_list_empty_state.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 18 KiB |
BIN
res/drawable-mdpi/conversation_list_empty_state.png
Normal file
BIN
res/drawable-mdpi/conversation_list_empty_state.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
BIN
res/drawable-xhdpi/conversation_list_empty_state.png
Normal file
BIN
res/drawable-xhdpi/conversation_list_empty_state.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 25 KiB |
BIN
res/drawable-xxhdpi/conversation_list_empty_state.png
Normal file
BIN
res/drawable-xxhdpi/conversation_list_empty_state.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 40 KiB |
BIN
res/drawable-xxxhdpi/conversation_list_empty_state.png
Normal file
BIN
res/drawable-xxxhdpi/conversation_list_empty_state.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
@@ -1,12 +1,31 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<android.support.design.widget.CoordinatorLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
xmlns:fab="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:orientation="vertical">
|
||||
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"
|
||||
android:orientation="vertical">
|
||||
|
||||
<FrameLayout android:id="@+id/empty_state"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:visibility="gone">
|
||||
|
||||
<ImageView android:id="@+id/empty"
|
||||
android:src="@drawable/conversation_list_empty_state"
|
||||
android:scaleType="centerCrop"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"/>
|
||||
|
||||
<TextView android:text="@string/conversation_list_fragment__give_your_inbox_something_to_write_home_about_get_started_by_messaging_a_friend"
|
||||
android:textSize="20sp"
|
||||
android:padding="16dp"
|
||||
android:gravity="center"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"/>
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<LinearLayout android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
@@ -28,7 +47,8 @@
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<android.support.design.widget.FloatingActionButton
|
||||
|
||||
<org.thoughtcrime.securesms.components.registration.PulsingFloatingActionButton
|
||||
android:id="@+id/fab"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -38,4 +58,5 @@
|
||||
android:focusable="true"
|
||||
android:contentDescription="@string/conversation_list_fragment__fab_content_description"/>
|
||||
|
||||
|
||||
</android.support.design.widget.CoordinatorLayout>
|
||||
|
@@ -1490,6 +1490,7 @@
|
||||
<string name="recipient_preference_activity__shared_media">Shared media</string>
|
||||
<string name="registration_activity__verify_your_number">Verify Your Number</string>
|
||||
<string name="registration_activity__please_enter_your_mobile_number_to_receive_a_verification_code_carrier_rates_may_apply">Please enter your mobile number to receive a verification code. Carrier rates may apply.</string>
|
||||
<string name="conversation_list_fragment__give_your_inbox_something_to_write_home_about_get_started_by_messaging_a_friend">Give your inbox something to write home about. Get started by messaging a friend.</string>
|
||||
|
||||
|
||||
<!-- EOF -->
|
||||
|
Reference in New Issue
Block a user