|
@@ -25,94 +25,124 @@
|
|
|
|
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginEnd="16dp"
|
|
|
- android:layout_margin="16dp">
|
|
|
+ android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
|
- <FrameLayout
|
|
|
- android:layout_width="@dimen/avatar_size"
|
|
|
- android:layout_height="@dimen/avatar_size"
|
|
|
- android:layout_centerVertical="true"
|
|
|
- android:id="@+id/dialogAvatarFrameLayout">
|
|
|
+ <RelativeLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_margin="16dp">
|
|
|
|
|
|
- <ImageView
|
|
|
- android:id="@id/dialogAvatar"
|
|
|
+ <FrameLayout
|
|
|
android:layout_width="@dimen/avatar_size"
|
|
|
- android:layout_height="@dimen/avatar_size"/>
|
|
|
+ android:layout_height="@dimen/avatar_size"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:id="@+id/dialogAvatarFrameLayout">
|
|
|
|
|
|
- <ImageView
|
|
|
- android:id="@+id/onlineIndicator"
|
|
|
- android:layout_width="12dp"
|
|
|
- android:layout_height="12dp"
|
|
|
- android:layout_gravity="top|end"
|
|
|
- android:background="@drawable/shape_bubble_online"
|
|
|
- />
|
|
|
+ <ImageView
|
|
|
+ android:id="@id/dialogAvatar"
|
|
|
+ android:layout_width="@dimen/avatar_size"
|
|
|
+ android:layout_height="@dimen/avatar_size"/>
|
|
|
|
|
|
- </FrameLayout>
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/onlineIndicator"
|
|
|
+ android:layout_width="12dp"
|
|
|
+ android:layout_height="12dp"
|
|
|
+ android:layout_gravity="top|end"
|
|
|
+ android:background="@drawable/shape_bubble_online"
|
|
|
+ />
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@id/dialogName"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_alignTop="@id/dialogAvatarFrameLayout"
|
|
|
- android:layout_marginStart="8dp"
|
|
|
- android:layout_toEndOf="@id/dialogAvatarFrameLayout"
|
|
|
- android:layout_toStartOf="@id/dialogDate"
|
|
|
- android:ellipsize="end"
|
|
|
- android:fontFamily="@string/font_fontFamily_medium"
|
|
|
- android:includeFontPadding="false"
|
|
|
- android:maxLines="1"/>
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@id/dialogDate"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_alignParentEnd="true"
|
|
|
- android:ellipsize="end"
|
|
|
- android:maxLines="1"/>
|
|
|
-
|
|
|
- <RelativeLayout
|
|
|
- android:id="@+id/dialogLastMessageLayout"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_below="@id/dialogName"
|
|
|
- android:layout_marginStart="8dp"
|
|
|
- android:layout_marginTop="8dp"
|
|
|
- android:layout_toEndOf="@id/dialogAvatarFrameLayout">
|
|
|
-
|
|
|
- <ImageView
|
|
|
- android:id="@id/dialogLastMessageUserAvatar"
|
|
|
- android:layout_width="@dimen/small_item_height"
|
|
|
- android:layout_height="@dimen/small_item_height"
|
|
|
- android:layout_marginEnd="8dp"
|
|
|
- android:layout_centerVertical="true"/>
|
|
|
+ </FrameLayout>
|
|
|
|
|
|
<TextView
|
|
|
- android:id="@id/dialogLastMessage"
|
|
|
+ android:id="@id/dialogName"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_centerVertical="true"
|
|
|
- android:layout_toEndOf="@id/dialogLastMessageUserAvatar"
|
|
|
- android:layout_toStartOf="@id/dialogUnreadBubble"
|
|
|
+ android:layout_alignTop="@id/dialogAvatarFrameLayout"
|
|
|
+ android:layout_marginStart="8dp"
|
|
|
+ android:layout_toEndOf="@id/dialogAvatarFrameLayout"
|
|
|
+ android:layout_toStartOf="@id/dialogDate"
|
|
|
android:ellipsize="end"
|
|
|
- android:gravity="top"
|
|
|
- android:maxLines="2"/>
|
|
|
+ android:includeFontPadding="false"
|
|
|
+ android:maxLines="1"/>
|
|
|
|
|
|
<TextView
|
|
|
- android:id="@id/dialogUnreadBubble"
|
|
|
+ android:id="@id/dialogDate"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_centerInParent="true"
|
|
|
android:layout_alignParentEnd="true"
|
|
|
- android:layout_marginStart="8dp"
|
|
|
- android:background="@drawable/bubble_circle_unread"
|
|
|
android:ellipsize="end"
|
|
|
- android:gravity="center"
|
|
|
- android:textAlignment="center"
|
|
|
- android:lines="1"
|
|
|
- android:textColor="@color/white"/>
|
|
|
+ android:maxLines="1"/>
|
|
|
|
|
|
+ <RelativeLayout
|
|
|
+ android:id="@+id/dialogLastMessageLayout"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_below="@id/dialogName"
|
|
|
+ android:layout_marginStart="8dp"
|
|
|
+ android:layout_marginTop="8dp"
|
|
|
+ android:layout_toEndOf="@id/dialogAvatarFrameLayout">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@id/dialogLastMessageUserAvatar"
|
|
|
+ android:layout_width="@dimen/small_item_height"
|
|
|
+ android:layout_height="@dimen/small_item_height"
|
|
|
+ android:layout_marginEnd="8dp"
|
|
|
+ android:layout_centerVertical="true"/>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@id/dialogLastMessage"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:layout_toEndOf="@id/dialogLastMessageUserAvatar"
|
|
|
+ android:layout_toStartOf="@id/dialogUnreadBubble"
|
|
|
+ android:ellipsize="end"
|
|
|
+ android:gravity="top"
|
|
|
+ android:singleLine="false"
|
|
|
+ android:maxLines="2"/>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@id/dialogUnreadBubble"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:layout_alignParentEnd="true"
|
|
|
+ android:layout_marginStart="8dp"
|
|
|
+ android:background="@drawable/bubble_circle_unread"
|
|
|
+ android:gravity="center"
|
|
|
+ android:textAlignment="center"
|
|
|
+ android:lines="1"
|
|
|
+ android:textColor="@color/white"/>
|
|
|
+
|
|
|
+ </RelativeLayout>
|
|
|
+
|
|
|
+ </RelativeLayout>
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_alignParentEnd="true"
|
|
|
+ android:layout_alignParentBottom="true"
|
|
|
+ android:layout_marginEnd="8dp">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/passwordProtectedRoomImageView"
|
|
|
+ android:layout_width="12dp"
|
|
|
+ android:layout_height="12dp"
|
|
|
+ android:layout_marginBottom="4dp"
|
|
|
+ android:layout_toStartOf="@id/pinnedConversationImageView"
|
|
|
+ android:src="@drawable/ic_lock_black_24px"
|
|
|
+ android:visibility="visible"/>
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/pinnedConversationImageView"
|
|
|
+ android:layout_width="12dp"
|
|
|
+ android:layout_height="12dp"
|
|
|
+ android:layout_marginBottom="4dp"
|
|
|
+ android:layout_alignParentEnd="true"
|
|
|
+ android:src="@drawable/ic_lock_black_24px"
|
|
|
+ android:visibility="visible"/>
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|