gui: Adding Face list/create/destroy operations
Change-Id: Ic27f110bb31048048136c76bfb243f56405218d1
Refs: #2430
diff --git a/app/src/main/res/layout/create_face.xml b/app/src/main/res/layout/create_face.xml
new file mode 100644
index 0000000..6588dcc
--- /dev/null
+++ b/app/src/main/res/layout/create_face.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="vertical"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content">
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ style="@style/dialog_margin"
+ android:textAppearance="?android:attr/textAppearanceMedium"
+ android:text="Enter FaceUri for the remote NDN daemon"
+ android:layout_gravity="center_horizontal"/>
+
+ <EditText
+ android:id="@+id/faceUri"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ style="@style/dialog_margin"
+ android:hint="Face URI"
+ android:inputType="text"
+ android:focusable="true"
+ android:focusableInTouchMode="true"
+ android:selectAllOnFocus="true">
+ <requestFocus />
+ </EditText>
+
+</LinearLayout>
\ No newline at end of file
diff --git a/app/src/main/res/layout/face_list_item.xml b/app/src/main/res/layout/face_list_item.xml
new file mode 100644
index 0000000..2660a58
--- /dev/null
+++ b/app/src/main/res/layout/face_list_item.xml
@@ -0,0 +1,131 @@
+<?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="wrap_content"
+ android:minHeight="?android:attr/listPreferredItemHeight">
+
+ <LinearLayout
+ android:orientation="horizontal"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_alignParentTop="true"
+ android:layout_alignParentLeft="true"
+ android:layout_alignParentStart="true"
+ android:id="@+id/firstLine">
+
+ <TextView
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:textAppearance="@android:style/TextAppearance.DeviceDefault.SearchResult.Subtitle"
+ android:text="LocalUri"
+ android:id="@+id/localUri"
+ android:layout_alignParentTop="true"
+ android:layout_alignParentRight="true"
+ android:layout_alignParentEnd="true"
+ android:layout_margin="5dp"
+ android:layout_weight="1"
+ android:singleLine="true"/>
+
+ <TextView
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:textAppearance="@android:style/TextAppearance.DeviceDefault.SearchResult.Subtitle"
+ android:text="RemoteUri"
+ android:id="@+id/remoteUri"
+ android:layout_alignParentTop="true"
+ android:layout_alignParentLeft="true"
+ android:layout_alignParentStart="true"
+ android:layout_margin="5dp"
+ android:layout_weight="1"
+ android:singleLine="true"/>
+ </LinearLayout>
+
+ <LinearLayout
+ android:orientation="horizontal"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_alignParentTop="false"
+ android:layout_alignParentLeft="true"
+ android:layout_alignParentStart="true"
+ android:layout_alignParentEnd="false"
+ android:layout_below="@+id/firstLine"
+ android:id="@+id/secondLine"
+ android:layout_margin="5dp">
+
+ <LinearLayout
+ android:orientation="horizontal"
+ android:layout_width="0dp"
+ android:layout_weight="0.9"
+ android:layout_height="wrap_content"
+ android:layout_below="@+id/linearLayout"
+ android:id="@+id/idBlock">
+
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:text="ActualId"
+ android:id="@+id/faceId"
+ android:singleLine="true"/>
+
+ </LinearLayout>
+
+ <LinearLayout
+ android:orientation="horizontal"
+ android:layout_width="0dp"
+ android:layout_weight="1.5"
+ android:layout_height="wrap_content"
+ android:id="@+id/scopeBlock">
+
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:text="Scope"
+ android:id="@+id/scope"
+ android:singleLine="true"
+ android:layout_marginLeft="5dp"
+ android:layout_marginRight="5dp"/>
+
+ </LinearLayout>
+
+ <LinearLayout
+ android:orientation="horizontal"
+ android:layout_width="0dp"
+ android:layout_weight="1.2"
+ android:layout_height="wrap_content"
+ android:id="@+id/persistencyBlock">
+
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:text="Type"
+ android:id="@+id/persistency"
+ android:singleLine="true"
+ android:layout_marginLeft="5dp"
+ android:layout_marginRight="5dp"/>
+
+ </LinearLayout>
+
+ <LinearLayout
+ android:orientation="horizontal"
+ android:layout_width="0dp"
+ android:layout_weight="1.6"
+ android:layout_height="wrap_content"
+ android:id="@+id/expiresBlock">
+
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:text="Expires"
+ android:id="@+id/expires"
+ android:singleLine="true"
+ android:visibility="visible"/>
+
+ </LinearLayout>
+ </LinearLayout>
+
+
+</RelativeLayout>