94 lines
3.1 KiB
XML
94 lines
3.1 KiB
XML
|
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="horizontal" >
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/TextAvatar"
|
||
|
|
android:layout_width="36dp"
|
||
|
|
android:layout_height="36dp"
|
||
|
|
android:layout_marginTop="10dp"
|
||
|
|
android:scaleType="centerInside"
|
||
|
|
android:background="@drawable/circle"
|
||
|
|
android:textSize="24sp"
|
||
|
|
android:textAllCaps="true"
|
||
|
|
android:textColor="@android:color/white"
|
||
|
|
android:gravity="center"
|
||
|
|
android:visibility="gone" >
|
||
|
|
</TextView>
|
||
|
|
|
||
|
|
<androidx.cardview.widget.CardView
|
||
|
|
android:id="@+id/CardAvatar"
|
||
|
|
android:layout_width="36dp"
|
||
|
|
android:layout_height="36dp"
|
||
|
|
android:layout_marginTop="10dp"
|
||
|
|
android:layout_gravity="center_vertical"
|
||
|
|
android:elevation="12dp"
|
||
|
|
app:cardCornerRadius="18dp" >
|
||
|
|
|
||
|
|
<ImageView
|
||
|
|
android:id="@+id/ImageAvatar"
|
||
|
|
android:contentDescription="@string/avatar_image"
|
||
|
|
android:layout_height="36dp"
|
||
|
|
android:layout_width="36dp"
|
||
|
|
android:adjustViewBounds="true"
|
||
|
|
android:scaleType="centerCrop" >
|
||
|
|
</ImageView>
|
||
|
|
|
||
|
|
</androidx.cardview.widget.CardView>
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:id="@+id/chat"
|
||
|
|
android:orientation="vertical"
|
||
|
|
android:layout_width="fill_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_marginStart="42dp" >
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:orientation="horizontal"
|
||
|
|
android:layout_width="fill_parent"
|
||
|
|
android:layout_height="wrap_content" >
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/peer"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_marginTop="5dp"
|
||
|
|
android:layout_marginStart="5dp"
|
||
|
|
android:textSize="18sp"
|
||
|
|
android:text="" >
|
||
|
|
</TextView>
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/info"
|
||
|
|
android:layout_width="fill_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_marginTop="5dp"
|
||
|
|
android:layout_marginStart="5dp"
|
||
|
|
android:layout_marginEnd="5dp"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:gravity="end"
|
||
|
|
android:textSize="12sp"
|
||
|
|
android:text="" >
|
||
|
|
</TextView>
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/text"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_marginStart="5dp"
|
||
|
|
android:layout_marginEnd="5dp"
|
||
|
|
android:layout_marginBottom="5dp"
|
||
|
|
android:textSize="16sp"
|
||
|
|
android:singleLine="true"
|
||
|
|
android:text="" >
|
||
|
|
</TextView>
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
</RelativeLayout>
|