aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/res/layout
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-04-22 14:19:03 +0200
committerChristian Schneppe <christian@pix-art.de>2018-04-22 14:19:03 +0200
commit60494b249b13b09319d6ff944935b6dbbf71ba6b (patch)
tree8d7a918c32497ecb4af61ebeb3a7b76ce8cc28d7 /src/main/res/layout
parent13f58b1708b37757a7c4e934badcdd09b9aa12d5 (diff)
introduced sroll to bottom button
Diffstat (limited to 'src/main/res/layout')
-rw-r--r--src/main/res/layout/fragment_conversation.xml31
1 files changed, 27 insertions, 4 deletions
diff --git a/src/main/res/layout/fragment_conversation.xml b/src/main/res/layout/fragment_conversation.xml
index 54c608f13..dcf825dc5 100644
--- a/src/main/res/layout/fragment_conversation.xml
+++ b/src/main/res/layout/fragment_conversation.xml
@@ -5,8 +5,8 @@
<RelativeLayout xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:clickable="false"
- android:background="?attr/color_background_secondary">
+ android:background="?attr/color_background_secondary"
+ android:clickable="false">
<ListView
android:id="@+id/messages_view"
@@ -23,6 +23,29 @@
android:transcriptMode="normal"
tools:listitem="@layout/message_sent"></ListView>
+ <android.support.design.widget.FloatingActionButton
+ android:id="@+id/scroll_to_bottom_button"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignBottom="@+id/messages_view"
+ android:layout_alignParentEnd="true"
+ android:layout_margin="12dp"
+ android:alpha="0.85"
+ android:src="?attr/icon_scroll_down"
+ android:visibility="gone"
+ app:backgroundTint="?attr/color_background_primary"
+ app:fabSize="mini" />
+
+ <de.pixart.messenger.ui.widget.UnreadCountCustomView
+ android:id="@+id/unread_count_custom_view"
+ android:layout_width="?attr/IconSize"
+ android:layout_height="?attr/IconSize"
+ android:layout_alignTop="@+id/scroll_to_bottom_button"
+ android:layout_alignEnd="@+id/scroll_to_bottom_button"
+ android:elevation="8dp"
+ android:visibility="gone"
+ app:backgroundColor="?attr/unread_count" />
+
<RelativeLayout
android:id="@+id/input"
android:layout_width="match_parent"
@@ -100,7 +123,6 @@
android:layout_alignParentLeft="true"
android:layout_toLeftOf="@+id/textSendButton"
android:background="?attr/color_background_secondary"
- android:textColor="?attr/text_Color_Main"
android:ems="10"
android:imeOptions="flagNoExtractUi|actionSend"
android:inputType="textShortMessage|textMultiLine|textCapSentences"
@@ -111,7 +133,8 @@
android:paddingLeft="8dp"
android:paddingRight="8dp"
android:paddingTop="12dp"
- android:singleLine="false">
+ android:singleLine="false"
+ android:textColor="?attr/text_Color_Main">
</de.pixart.messenger.ui.widget.EditMessage>