mirror of
https://github.com/pierre42100/ComunicAndroid
synced 2025-04-01 19:12:41 +00:00
87 lines
3.3 KiB
XML
87 lines
3.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout 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:orientation="vertical"
|
|
android:paddingBottom="5dp"
|
|
android:paddingEnd="5dp"
|
|
android:paddingStart="5dp"
|
|
android:paddingTop="5dp">
|
|
|
|
<!-- Messages on the left -->
|
|
<LinearLayout
|
|
android:id="@+id/fragment_conversation_message_left"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/fragment_conversation_message_item_username"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
tools:text="User name" />
|
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="1dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/fragment_conversation_message_item_accountimage"
|
|
android:layout_width="26dp"
|
|
android:layout_height="26dp"
|
|
android:layout_gravity="center"
|
|
android:layout_marginEnd="5dp"
|
|
android:src="@drawable/default_account_image" />
|
|
|
|
<TextView
|
|
android:id="@+id/fragment_conversation_message_item_content"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_toEndOf="@id/fragment_conversation_message_item_accountimage"
|
|
android:background="@color/conversation_otheruser_messages_background"
|
|
android:padding="5dp"
|
|
android:paddingEnd="15dp"
|
|
android:paddingStart="15dp"
|
|
android:textColor="@color/conversation_otheruser_messages_textColor"
|
|
tools:text="A message" />
|
|
|
|
</RelativeLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<!-- Messages on the right -->
|
|
<RelativeLayout
|
|
android:id="@+id/fragment_conversation_message_right"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="1dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/fragment_conversation_message_item_accountimage_right"
|
|
android:layout_width="26dp"
|
|
android:layout_height="26dp"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_gravity="end"
|
|
android:layout_marginStart="5dp"
|
|
android:src="@drawable/default_account_image" />
|
|
|
|
<TextView
|
|
android:id="@+id/fragment_conversation_message_item_content_right"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_toStartOf="@id/fragment_conversation_message_item_accountimage_right"
|
|
android:background="@color/conversation_user_messages_background"
|
|
android:padding="5dp"
|
|
android:paddingEnd="15dp"
|
|
android:paddingStart="15dp"
|
|
android:textColor="@color/conversation_user_messages_textColor"
|
|
tools:text="A message" />
|
|
|
|
</RelativeLayout>
|
|
|
|
</LinearLayout> |