gui: Add ability to view detailed information about routes
Change-Id: Ib284082946287fd3f4927f83ab24f2f82b1021f2
diff --git a/app/src/main/res/layout/fragment_route_detail.xml b/app/src/main/res/layout/fragment_route_detail.xml
new file mode 100644
index 0000000..048b2c5
--- /dev/null
+++ b/app/src/main/res/layout/fragment_route_detail.xml
@@ -0,0 +1,34 @@
+<?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="match_parent"
+ style="@style/default_linear_layout_padding"
+ >
+
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/fragment_route_details_title"
+ style="?android:listSeparatorTextViewStyle"
+ />
+
+ <TextView style="@style/default_custom_white_button"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text=""
+ android:id="@+id/route_detail_prefix"/>
+
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/fragment_route_details_next_hops"
+ style="?android:listSeparatorTextViewStyle"
+ />
+
+ <include
+ layout="@android:layout/list_content"
+ />
+
+</LinearLayout>
\ No newline at end of file
diff --git a/app/src/main/res/layout/list_item_route_info_item.xml b/app/src/main/res/layout/list_item_route_info_item.xml
new file mode 100644
index 0000000..8c2057a
--- /dev/null
+++ b/app/src/main/res/layout/list_item_route_info_item.xml
@@ -0,0 +1,22 @@
+<?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"
+ android:background="@drawable/item_background_activated"
+ >
+
+ <TextView
+ android:id="@+id/list_item_route_info_title"
+ android:text="Title"
+ style="@style/two_row_item_title"
+ />
+
+ <TextView
+ android:id="@+id/list_item_route_info_value"
+ android:text="Value"
+ style="@style/two_row_item_secondary"
+ />
+
+</LinearLayout>
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index dc86688..87899fe 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -54,4 +54,6 @@
<string name="face_add_dialog_create_face">Create face</string>
<string name="route_add_dialog_create_route">Create route</string>
+ <string name="fragment_route_details_title">Route Details</string>
+ <string name="fragment_route_details_next_hops">List of next hops</string>
</resources>