67 lines
2.2 KiB
XML
67 lines
2.2 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:id="@+id/contactRow"
|
|
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: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_gravity="center_vertical"
|
|
android:elevation="12dp"
|
|
app:cardCornerRadius="18dp" >
|
|
|
|
<ImageView
|
|
android:id="@+id/ImageAvatar"
|
|
android:layout_height="36dp"
|
|
android:layout_width="36dp"
|
|
android:adjustViewBounds="true"
|
|
android:scaleType="centerCrop"
|
|
android:contentDescription="@string/avatar_image">
|
|
</ImageView>
|
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
<TextView
|
|
android:id="@+id/contactName"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginStart="41dp"
|
|
android:textSize="20sp"
|
|
android:layout_marginBottom="6dp">
|
|
</TextView>
|
|
|
|
<ImageButton
|
|
android:id="@+id/edit"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerVertical="true"
|
|
android:layout_alignParentEnd="true"
|
|
android:paddingTop="5dp"
|
|
android:paddingBottom="5dp"
|
|
android:layout_marginStart="10dp"
|
|
android:src="@drawable/edit"
|
|
android:background="@null"
|
|
android:scaleType="centerCrop"
|
|
android:contentDescription="@string/edit" >
|
|
</ImageButton>
|
|
|
|
</RelativeLayout>
|