gui: Adding Route list/create operations
Change-Id: I5655b7a0d243eb0c59ad0fc8470a497810ca001d
Refs: #2642
diff --git a/app/src/main/res/layout/create_route.xml b/app/src/main/res/layout/create_route.xml
new file mode 100644
index 0000000..ddf7fb2
--- /dev/null
+++ b/app/src/main/res/layout/create_route.xml
@@ -0,0 +1,40 @@
+<?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 prefix and FaceUri to register with NDN daemon"
+ android:layout_gravity="center_horizontal"/>
+
+ <EditText
+ android:id="@+id/prefix"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ style="@style/dialog_margin"
+ android:hint="Prefix"
+ android:inputType="text"
+ android:focusable="true"
+ android:focusableInTouchMode="true"
+ android:selectAllOnFocus="true">
+ <requestFocus />
+ </EditText>
+
+ <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">
+ </EditText>
+
+</LinearLayout>
\ No newline at end of file
diff --git a/app/src/main/res/xml/pref_routes.xml b/app/src/main/res/xml/pref_routes.xml
new file mode 100644
index 0000000..322f584
--- /dev/null
+++ b/app/src/main/res/xml/pref_routes.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
+ <PreferenceCategory
+ android:key="routes"
+ android:title="Routes">
+
+ <Preference android:title="Create route" android:key="create_route" />
+
+ <PreferenceScreen android:title="List routes" android:key="list_routes">
+ <intent android:action="android.intent.action.VIEW"
+ android:targetPackage="net.named_data.nfd"
+ android:targetClass="net.named_data.nfd.RouteListActivity" />
+ </PreferenceScreen>
+
+ </PreferenceCategory>
+</PreferenceScreen>