174 lines
6.7 KiB
XML
174 lines
6.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:paddingBottom="0dp"
|
|
android:paddingLeft="0dp"
|
|
android:paddingRight="0dp"
|
|
android:paddingTop="@dimen/activity_vertical_margin">
|
|
|
|
<TextView
|
|
android:id="@+id/tvName"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/activity_horizontal_margin"
|
|
android:layout_marginRight="@dimen/activity_horizontal_margin"
|
|
android:layout_marginTop="10dp"
|
|
android:text="Contact Name"
|
|
android:textStyle="bold" />
|
|
|
|
<EditText
|
|
android:id="@+id/etName"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/activity_horizontal_margin"
|
|
android:layout_marginRight="@dimen/activity_horizontal_margin"
|
|
android:background="@drawable/edittext_bg"
|
|
android:maxLines="1"
|
|
android:textColor="@color/black" />
|
|
<TextView
|
|
android:id="@+id/tvNameError"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/activity_horizontal_margin"
|
|
android:layout_marginRight="@dimen/activity_horizontal_margin"
|
|
android:maxLines="1"
|
|
android:textColor="@color/red" />
|
|
<TextView
|
|
android:id="@+id/tvEmail"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/activity_horizontal_margin"
|
|
android:layout_marginRight="@dimen/activity_horizontal_margin"
|
|
android:layout_marginTop="10dp"
|
|
android:text="Email"
|
|
android:textStyle="bold" />
|
|
<EditText
|
|
android:id="@+id/etEmail"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/activity_horizontal_margin"
|
|
android:layout_marginRight="@dimen/activity_horizontal_margin"
|
|
android:background="@drawable/edittext_bg"
|
|
android:maxLines="1"
|
|
android:textColor="@color/black" />
|
|
<TextView
|
|
android:id="@+id/tvEmailError"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/activity_horizontal_margin"
|
|
android:layout_marginRight="@dimen/activity_horizontal_margin"
|
|
android:maxLines="1"
|
|
android:textColor="@color/red" />
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
<android.support.v7.widget.RecyclerView
|
|
android:id="@+id/rvContactAddresses"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"></android.support.v7.widget.RecyclerView>
|
|
<Button
|
|
android:id="@+id/btnAddAddress"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@id/rvContactAddresses"
|
|
android:text="Add"/>
|
|
</RelativeLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/activity_horizontal_margin"
|
|
android:layout_marginRight="@dimen/activity_horizontal_margin"
|
|
android:layout_marginTop="10dp"
|
|
android:gravity="center"
|
|
android:orientation="horizontal">
|
|
|
|
<Button
|
|
android:id="@+id/btnCancel"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_margin="10dp"
|
|
android:background="@color/pink"
|
|
android:text="@string/cancel"
|
|
android:textColor="@color/white" />
|
|
|
|
<Button
|
|
android:id="@+id/btnCreate"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_margin="10dp"
|
|
android:background="@color/green"
|
|
android:padding="10dp"
|
|
android:text="Create Contact"
|
|
android:textColor="@color/white" />
|
|
<Button
|
|
android:id="@+id/btnModify"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_margin="10dp"
|
|
android:background="@color/green"
|
|
android:padding="10dp"
|
|
android:text="Modify Contact"
|
|
android:textColor="@color/white" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@color/white"
|
|
android:gravity="bottom"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@color/black"></LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="35dp"
|
|
android:background="@color/bottomBarColor"
|
|
android:gravity="bottom"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/tvAppVersion_brain_key_activity"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:gravity="center"
|
|
android:text="@string/v_1_0_beta" />
|
|
|
|
<TextView
|
|
android:id="@+id/tvBlockNumberHead_brain_key_activity"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="2"
|
|
android:gravity="center"
|
|
android:text="@string/block_number" />
|
|
|
|
<ImageView
|
|
android:id="@+id/ivSocketConnected_brain_key_activity"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_weight="0.5" />
|
|
|
|
<ImageView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_weight="0.5"
|
|
android:src="@drawable/icon_setting"
|
|
android:visibility="invisible" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|