mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-26 15:57:34 +00:00
Support for a "new messages" divider in conversations
// FREEBIE
This commit is contained in:
BIN
res/drawable-xxhdpi/last_seen_background.9.png
Normal file
BIN
res/drawable-xxhdpi/last_seen_background.9.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 187 B |
7
res/drawable/last_seen_divider_text_background.xml
Normal file
7
res/drawable/last_seen_divider_text_background.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" >
|
||||
<solid android:color="@color/white"/>
|
||||
|
||||
<corners android:radius="65dp"/>
|
||||
<padding android:bottom="15dp" android:left="15dp" android:right="15dp" android:top="15dp"/>
|
||||
</shape>
|
23
res/layout/conversation_item_last_seen.xml
Normal file
23
res/layout/conversation_item_last_seen.xml
Normal file
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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="wrap_content"
|
||||
android:paddingTop="10dp"
|
||||
android:paddingBottom="10dp"
|
||||
android:layout_marginBottom="5dp"
|
||||
android:background="@drawable/last_seen_background">
|
||||
|
||||
<TextView android:id="@+id/text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:paddingLeft="6dp"
|
||||
android:paddingRight="6dp"
|
||||
android:paddingTop="3dp"
|
||||
android:paddingBottom="3dp"
|
||||
android:textSize="12sp"
|
||||
android:padding="12dp"
|
||||
android:background="@drawable/last_seen_divider_text_background"
|
||||
tools:text="3 unread messages" />
|
||||
</FrameLayout>
|
@@ -146,6 +146,12 @@
|
||||
<string name="ConversationActivity_error_sending_voice_message">Error sending voice message</string>
|
||||
<string name="ConversationActivity_there_is_no_app_available_to_handle_this_link_on_your_device">There is no app available to handle this link on your device.</string>
|
||||
|
||||
<!-- ConversationAdapter -->
|
||||
<plurals name="ConversationAdapter_n_unread_messages">
|
||||
<item quantity="one">%d unread message</item>
|
||||
<item quantity="other">%d unread messages</item>
|
||||
</plurals>
|
||||
|
||||
<!-- ConversationFragment -->
|
||||
<string name="ConversationFragment_message_details">Message details</string>
|
||||
<string name="ConversationFragment_transport_s_sent_received_s">Transport: %1$s\nSent/Received: %2$s</string>
|
||||
@@ -1310,7 +1316,6 @@
|
||||
<!-- transport_selection_list_item -->
|
||||
<string name="transport_selection_list_item__transport_icon">Transport icon</string>
|
||||
|
||||
|
||||
<!-- EOF -->
|
||||
|
||||
</resources>
|
||||
|
Reference in New Issue
Block a user