Files
i2p.i2p-bote.android/res/layout/fragment_edit_contact.xml
str4d 108096e022 Backend for setting identity and contact pictures
Pictures are not saved correctly, something is corrupting them.
2014-05-16 09:33:28 +00:00

59 lines
2.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:paddingTop="10dp" >
<ImageView
android:id="@+id/picture"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_contact_picture" />
<EditText
android:id="@+id/contact_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/picture"
android:layout_toRightOf="@+id/picture"
android:ems="10"
android:hint="@string/contact_name"
android:inputType="text" />
<Button
android:id="@+id/import_destination_from_file"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/picture"
android:layout_alignParentRight="true"
android:text="@string/label_browse" />
<EditText
android:id="@+id/destination"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_toLeftOf="@+id/import_destination_from_file"
android:layout_alignBaseline="@+id/import_destination_from_file"
android:ems="10"
android:hint="@string/email_destination"
android:inputType="text" />
<EditText
android:id="@+id/text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/import_destination_from_file"
android:ems="10"
android:hint="@string/description"
android:inputType="text" />
<TextView
android:id="@+id/error"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/text"
android:textColor="@color/error_color" />
</RelativeLayout>