linphone-android/res/layout/edit_contact.xml

126 lines
No EOL
3.7 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/colorH"
android:orientation="vertical">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="60dp"
android:layout_gravity="bottom"
android:background="@color/colorF"
android:id="@+id/relativeLayout">
<ImageView
android:contentDescription="@string/content_description_back"
android:id="@+id/back"
android:layout_alignParentLeft="true"
android:padding="10dp"
android:src="@drawable/back"
android:gravity="center"
android:layout_width="wrap_content"
android:layout_height="match_parent"/>
<ImageView
android:contentDescription="@string/content_description_valid"
android:id="@+id/ok"
android:layout_alignParentRight="true"
android:padding="10dp"
android:src="@drawable/valid"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:adjustViewBounds="true"/>
<ImageView
android:contentDescription="@string/content_description_delete"
android:id="@+id/deleteContact"
android:padding="10dp"
android:src="@drawable/delete"
android:gravity="center"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentTop="true"
android:layout_toLeftOf="@+id/ok"
android:layout_toStartOf="@+id/editContact"/>
</RelativeLayout>
<ScrollView
android:id="@+id/controlsScrollView"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="20dp"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:gravity="center"
android:orientation="vertical">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center">
<ImageView
android:id="@+id/contactPicture"
android:layout_width="120dp"
android:layout_height="120dp"
android:src="@drawable/avatar" />
</RelativeLayout>
<EditText
android:textCursorDrawable="@null"
android:id="@+id/contactLastName"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/contact_last_name"
android:textColor="@color/text_contrast"
android:background="@drawable/resizable_textfield"
android:gravity="left"
android:paddingRight="5dp"
android:inputType="textPersonName|textCapWords"
android:layout_column="0"/>
<EditText
android:textCursorDrawable="@null"
android:id="@+id/contactFirstName"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/contact_first_name"
android:textColor="@color/text_contrast"
android:background="@drawable/resizable_textfield"
android:gravity="left"
android:paddingRight="5dp"
android:inputType="textPersonName|textCapWords"
android:layout_column="1"/>
</LinearLayout>
<TableLayout
android:id="@+id/controls"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="20dp">
<TableRow
android:layout_width="fill_parent"
android:layout_height="fill_parent">
</TableRow>
</TableLayout>
</LinearLayout>
</ScrollView>
</LinearLayout>