You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
102 lines
3.9 KiB
102 lines
3.9 KiB
<?xml version="1.0" encoding="utf-8"?> |
|
<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 |
|
android:layout_width="wrap_content" |
|
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> |
|
|
|
<android.support.v7.widget.CardView |
|
android:layout_width="wrap_content" |
|
android:layout_height="wrap_content" |
|
app:cardCornerRadius="10dp" |
|
android:layout_margin="5dp"> |
|
|
|
<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"> |
|
|
|
<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"/> |
|
|
|
<RelativeLayout |
|
android:id="@+id/message_content" |
|
android:layout_width="wrap_content" |
|
android:layout_height="wrap_content"> |
|
|
|
<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> |
|
|
|
</LinearLayout> |