140 lines
4.7 KiB
XML
140 lines
4.7 KiB
XML
<?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"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:id="@+id/ContactView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingLeft="16dp"
|
|
android:paddingRight="16dp"
|
|
android:paddingTop="16dp"
|
|
android:paddingBottom="24dp"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/TextAvatar"
|
|
android:layout_width="96dp"
|
|
android:layout_height="96dp"
|
|
android:layout_gravity="center_horizontal"
|
|
android:scaleType="centerInside"
|
|
android:background="@drawable/circle"
|
|
android:textSize="72sp"
|
|
android:textAllCaps="true"
|
|
android:textColor="@android:color/white"
|
|
android:gravity="center" >
|
|
</TextView>
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:id="@+id/CardAvatar"
|
|
android:layout_width="96dp"
|
|
android:layout_height="96dp"
|
|
android:layout_gravity="center_horizontal"
|
|
android:elevation="12dp"
|
|
app:cardCornerRadius="48dp" >
|
|
|
|
<ImageView
|
|
android:id="@+id/ImageAvatar"
|
|
android:contentDescription="@string/avatar_image"
|
|
android:layout_height="96dp"
|
|
android:layout_width="96dp"
|
|
android:adjustViewBounds="true"
|
|
android:scaleType="centerCrop" >
|
|
</ImageView>
|
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
<TextView
|
|
android:id="@+id/NameTitle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textSize="18sp"
|
|
android:paddingTop="10dp"
|
|
android:text="@string/contact_name" >
|
|
</TextView>
|
|
|
|
<EditText
|
|
android:id="@+id/Name"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="textPersonName|textCapWords"
|
|
android:textSize="18sp"
|
|
android:layout_width="fill_parent"
|
|
android:importantForAutofill="no"
|
|
tools:ignore="LabelFor">
|
|
</EditText>
|
|
|
|
<TextView
|
|
android:id="@+id/SipOrTelUriTitle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textSize="18sp"
|
|
android:paddingTop="10dp"
|
|
android:text="@string/sip_or_tel_uri" >
|
|
</TextView>
|
|
|
|
<EditText
|
|
android:id="@+id/Uri"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="@string/user_domain_or_number"
|
|
android:textColorHint="@color/colorSecondaryDark"
|
|
android:inputType="textEmailAddress"
|
|
android:textSize="18sp"
|
|
android:importantForAutofill="no"
|
|
tools:ignore="TextFields" >
|
|
</EditText>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingTop="10dp"
|
|
android:orientation="horizontal" >
|
|
<TextView
|
|
android:id="@+id/FavoriteTitle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_toStartOf="@id/Favorite"
|
|
android:textSize="18sp"
|
|
android:text="@string/favorite" >
|
|
</TextView>
|
|
<CheckBox
|
|
android:id="@+id/Favorite"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_gravity="end"
|
|
android:checked="false" >
|
|
</CheckBox>
|
|
</RelativeLayout>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingTop="5dp"
|
|
android:orientation="horizontal" >
|
|
<TextView
|
|
android:id="@+id/AndroidTitle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_toStartOf="@id/Android"
|
|
android:textSize="18sp"
|
|
android:text="@string/android" >
|
|
</TextView>
|
|
<CheckBox
|
|
android:id="@+id/Android"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_gravity="end"
|
|
android:checked="false" >
|
|
</CheckBox>
|
|
</RelativeLayout>
|
|
|
|
</LinearLayout>
|
|
|