SLAM/mobile/src/main/res/layout/item_chatmessage.xml

102 lines
3.9 KiB
XML
Raw Normal View History

2018-01-27 03:33:50 +01:00
<?xml version="1.0" encoding="utf-8"?>
2018-01-29 14:02:55 +01:00
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/message_direction"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<RelativeLayout
2018-01-27 03:33:50 +01:00
android:layout_width="wrap_content"
2018-01-29 14:02:55 +01:00
android:layout_height="match_parent">
<de.hdodenhof.circleimageview.CircleImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_person_black_48dp"
android:layout_centerVertical="true"/>
</RelativeLayout>
2018-01-27 03:33:50 +01:00
2018-01-29 14:02:55 +01:00
<android.support.v7.widget.CardView
2018-01-27 03:33:50 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2018-01-29 14:02:55 +01:00
app:cardCornerRadius="10dp"
android:layout_margin="5dp">
2018-01-27 03:33:50 +01:00
2018-01-29 14:02:55 +01:00
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginStart="10dp"
android:layout_marginTop="5dp"
android:layout_marginBottom="5dp"
android:layout_marginEnd="10dp">
2018-01-27 03:33:50 +01:00
2018-01-29 14:02:55 +01:00
<TextView
android:id="@+id/message_sender"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/secondaryDarkColor"
android:text="Alice@Wonderland.lit"/>
2018-01-27 03:33:50 +01:00
2018-01-29 14:02:55 +01:00
<RelativeLayout
android:id="@+id/message_content"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
2018-01-27 03:33:50 +01:00
2018-01-29 14:02:55 +01:00
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="?attr/textSizeMessageContent"
android:text="This is an example text."
/>
<!--
<ImageView
android:layout_width="300dp"
android:layout_height="300dp"
android:src="@drawable/ic_lock_black_24dp"/>
-->
</RelativeLayout>
<View style="@style/Divider" />
<android.support.constraint.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minWidth="100dp">
<TextView
android:id="@+id/message_sender_role"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end"
android:layout_marginEnd="8dp"
android:textSize="?attr/textSizeMessageMetadata"
android:text="Admin"
app:layout_constraintStart_toStartOf="parent" />
<TextView
android:id="@+id/sender_date"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintEnd_toEndOf="parent"
android:textSize="?attr/textSizeMessageMetadata"
android:text="12:23"/>
</android.support.constraint.ConstraintLayout>
</LinearLayout>
</android.support.v7.widget.CardView>
</LinearLayout>
2018-01-27 03:33:50 +01:00
</LinearLayout>