diff options
author | Angelo Mantellini (manangel) <angelo.mantellini@irt-systemx.fr> | 2017-03-29 18:00:06 +0200 |
---|---|---|
committer | Angelo Mantellini (manangel) <angelo.mantellini@irt-systemx.fr> | 2017-03-30 18:58:33 +0200 |
commit | 3137acdd5a45285dab9903f9d41560c63eca8523 (patch) | |
tree | 38bd8525a9e214d848a73fc40e81ddb182cf91b6 /iget_android/app/src/main/res/layout | |
parent | 9b30fc10fb1cbebe651e5a107e8ca5b24de54675 (diff) |
first commit
Change-Id: I8412b8e7d966c2fbc508b537fd9a9bbcfc628ca8
Signed-off-by: Angelo Mantellini (manangel) <angelo.mantellini@irt-systemx.fr>
Diffstat (limited to 'iget_android/app/src/main/res/layout')
19 files changed, 517 insertions, 0 deletions
diff --git a/iget_android/app/src/main/res/layout/activity_fragment.xml b/iget_android/app/src/main/res/layout/activity_fragment.xml new file mode 100644 index 00000000..98ee139c --- /dev/null +++ b/iget_android/app/src/main/res/layout/activity_fragment.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="utf-8"?> +<FrameLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/fragment_container" + android:layout_height="match_parent" + android:layout_width="match_parent" + > + +</FrameLayout>
\ No newline at end of file diff --git a/iget_android/app/src/main/res/layout/activity_main.xml b/iget_android/app/src/main/res/layout/activity_main.xml new file mode 100644 index 00000000..6d8b08a0 --- /dev/null +++ b/iget_android/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="utf-8"?> +<android.support.v4.widget.DrawerLayout + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:id="@+id/drawer_layout" + android:layout_width="match_parent" + android:layout_height="match_parent" + tools:context=".MainActivity"> + + <!-- Main container for fragments to be presented in --> + <FrameLayout + android:id="@+id/main_fragment_container" + android:layout_width="match_parent" + android:layout_height="match_parent" + /> + + <!-- DrawerFragment for user navigation --> + <FrameLayout + android:id="@+id/navigation_drawer" + android:layout_width="@dimen/drawer_width" + android:layout_height="match_parent" + android:layout_gravity="start" + tools:layout="@layout/activity_main_drawer_listview" + /> + +</android.support.v4.widget.DrawerLayout> diff --git a/iget_android/app/src/main/res/layout/activity_main_drawer_listview.xml b/iget_android/app/src/main/res/layout/activity_main_drawer_listview.xml new file mode 100644 index 00000000..7ca37002 --- /dev/null +++ b/iget_android/app/src/main/res/layout/activity_main_drawer_listview.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="utf-8"?> +<ListView 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:choiceMode="singleChoice" + android:divider="@android:color/transparent" + android:dividerHeight="0dp" + android:background="#cccc" + tools:context=".DrawerFragment" +/> diff --git a/iget_android/app/src/main/res/layout/dialog_create_face.xml b/iget_android/app/src/main/res/layout/dialog_create_face.xml new file mode 100644 index 00000000..02d40a62 --- /dev/null +++ b/iget_android/app/src/main/res/layout/dialog_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/default_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/default_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/iget_android/app/src/main/res/layout/dialog_create_route.xml b/iget_android/app/src/main/res/layout/dialog_create_route.xml new file mode 100644 index 00000000..67c7677e --- /dev/null +++ b/iget_android/app/src/main/res/layout/dialog_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/default_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/default_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/default_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/iget_android/app/src/main/res/layout/fragment_face_detail_list_header.xml b/iget_android/app/src/main/res/layout/fragment_face_detail_list_header.xml new file mode 100644 index 00000000..227891f7 --- /dev/null +++ b/iget_android/app/src/main/res/layout/fragment_face_detail_list_header.xml @@ -0,0 +1,17 @@ +<?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" + style="@style/default_linear_layout_padding" + > + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/fragment_face_details_title" + style="?android:listSeparatorTextViewStyle" + /> + +</LinearLayout>
\ No newline at end of file diff --git a/iget_android/app/src/main/res/layout/fragment_face_list_list_header.xml b/iget_android/app/src/main/res/layout/fragment_face_list_list_header.xml new file mode 100644 index 00000000..d44726c8 --- /dev/null +++ b/iget_android/app/src/main/res/layout/fragment_face_list_list_header.xml @@ -0,0 +1,54 @@ +<?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" + style="@style/default_linear_layout_padding" + > + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/face_list_list_of_faces_title" + style="?android:listSeparatorTextViewStyle" + /> + + <FrameLayout + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" + > + + <ProgressBar + android:id="@+id/face_list_reloading_list_progress_bar" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:visibility="gone" + /> + + <LinearLayout + android:id="@+id/face_list_info_unavailable" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + android:visibility="gone" + > + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/oops" + /> + + <TextView + android:layout_width="match_parent" + android:layout_height="match_parent" + android:text="@string/error_cannot_communicate_with_nfd" + /> + + </LinearLayout> + + </FrameLayout> + +</LinearLayout>
\ No newline at end of file diff --git a/iget_android/app/src/main/res/layout/fragment_logcat_output.xml b/iget_android/app/src/main/res/layout/fragment_logcat_output.xml new file mode 100644 index 00000000..93f58f0e --- /dev/null +++ b/iget_android/app/src/main/res/layout/fragment_logcat_output.xml @@ -0,0 +1,14 @@ +<?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"> + + <ListView + android:id="@+id/log_output" + android:layout_weight="1" + android:layout_width="match_parent" + android:layout_height="0dp"> + </ListView> + +</LinearLayout>
\ No newline at end of file diff --git a/iget_android/app/src/main/res/layout/fragment_logcat_tags_list_header.xml b/iget_android/app/src/main/res/layout/fragment_logcat_tags_list_header.xml new file mode 100644 index 00000000..9e81844e --- /dev/null +++ b/iget_android/app/src/main/res/layout/fragment_logcat_tags_list_header.xml @@ -0,0 +1,17 @@ +<?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" + style="@style/default_linear_layout_padding" + > + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/fragment_logcat_tags_n_log_levels" + style="?android:listSeparatorTextViewStyle" + /> + +</LinearLayout>
\ No newline at end of file diff --git a/iget_android/app/src/main/res/layout/fragment_main.xml b/iget_android/app/src/main/res/layout/fragment_main.xml new file mode 100644 index 00000000..76f3a6c8 --- /dev/null +++ b/iget_android/app/src/main/res/layout/fragment_main.xml @@ -0,0 +1,57 @@ +<?xml version="1.0" encoding="utf-8"?> +<ScrollView + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + + <LinearLayout + style="@style/default_linear_layout_padding" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + > + + <TextView + style="?android:listSeparatorTextViewStyle" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/pref_category_title_general" + /> + + <TextView + android:text="Download Path" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:id="@+id/downloadPathTextView" /> + + <EditText + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:inputType="textPersonName" + android:text="http://webserver/sintel/mpd" + android:ems="10" + android:id="@+id/downloadPathEditText" /> + + <TextView + android:text="Destination Path" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:id="@+id/destinationPathTextView" /> + + <EditText + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:inputType="textPersonName" + android:text="/sdcard/IGet" + android:ems="10" + android:id="@+id/destinationPathEditText" /> + + + + <Button + android:id="@+id/start_iget" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="Start IGet" /> + </LinearLayout> +</ScrollView> diff --git a/iget_android/app/src/main/res/layout/fragment_route_detail_list_header.xml b/iget_android/app/src/main/res/layout/fragment_route_detail_list_header.xml new file mode 100644 index 00000000..2244c1ab --- /dev/null +++ b/iget_android/app/src/main/res/layout/fragment_route_detail_list_header.xml @@ -0,0 +1,38 @@ +<?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" + style="@style/default_linear_layout_padding" + > + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/fragment_route_route_name_title" + style="?android:listSeparatorTextViewStyle" + /> + + <TextView + android:id="@+id/route_detail_prefix" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="" + style="@style/default_custom_white_button" + /> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/fragment_route_details_next_hops" + style="?android:listSeparatorTextViewStyle" + /> + + <ProgressBar + android:id="@+id/route_detail_list_reloading_list_progress_bar" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:visibility="gone" /> + +</LinearLayout>
\ No newline at end of file diff --git a/iget_android/app/src/main/res/layout/fragment_route_list_list_header.xml b/iget_android/app/src/main/res/layout/fragment_route_list_list_header.xml new file mode 100644 index 00000000..361cfa29 --- /dev/null +++ b/iget_android/app/src/main/res/layout/fragment_route_list_list_header.xml @@ -0,0 +1,54 @@ +<?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" + style="@style/default_linear_layout_padding" + > + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/route_list_list_of_routes_title" + style="?android:listSeparatorTextViewStyle" + /> + + <FrameLayout + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" + > + + <ProgressBar + android:id="@+id/route_list_reloading_list_progress_bar" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:visibility="gone" + /> + + <LinearLayout + android:id="@+id/route_list_info_unavailable" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + android:visibility="gone" + > + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/oops" + /> + + <TextView + android:layout_width="match_parent" + android:layout_height="match_parent" + android:text="@string/error_cannot_communicate_with_nfd" + /> + + </LinearLayout> + + </FrameLayout> + +</LinearLayout>
\ No newline at end of file diff --git a/iget_android/app/src/main/res/layout/list_item_drawer_item.xml b/iget_android/app/src/main/res/layout/list_item_drawer_item.xml new file mode 100644 index 00000000..08a598b1 --- /dev/null +++ b/iget_android/app/src/main/res/layout/list_item_drawer_item.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@drawable/drawer_item_background_activated" + android:paddingLeft="@dimen/default_padding_left" + android:paddingRight="@dimen/default_padding_right" + > + + <ImageView + android:id="@+id/drawer_item_icon" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + /> + + <TextView + android:id="@+id/drawer_item_text" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:textAppearance="?android:attr/textAppearanceListItemSmall" + android:minHeight="?android:attr/listPreferredItemHeightSmall" + android:gravity="center_vertical" + /> + +</LinearLayout>
\ No newline at end of file diff --git a/iget_android/app/src/main/res/layout/list_item_face_generic_item.xml b/iget_android/app/src/main/res/layout/list_item_face_generic_item.xml new file mode 100644 index 00000000..c4d07374 --- /dev/null +++ b/iget_android/app/src/main/res/layout/list_item_face_generic_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="horizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content" + style="@style/default_linear_layout_padding" + > + + <TextView + android:id="@+id/list_item_generic_title" + android:text="Title" + style="@style/two_column_item_title" + /> + + <TextView + android:id="@+id/list_item_generic_value" + android:text="Value" + style="@style/two_column_item_secondary" + /> + +</LinearLayout> diff --git a/iget_android/app/src/main/res/layout/list_item_face_status_item.xml b/iget_android/app/src/main/res/layout/list_item_face_status_item.xml new file mode 100644 index 00000000..f6c6440b --- /dev/null +++ b/iget_android/app/src/main/res/layout/list_item_face_status_item.xml @@ -0,0 +1,23 @@ +<?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/list_item_background_activated" + style="@style/default_linear_layout_padding" + > + + <TextView + android:id="@+id/list_item_face_uri" + android:text="FaceUri" + style="@style/two_row_item_title" + /> + + <TextView + android:id="@+id/list_item_face_id" + android:text="FaceId" + style="@style/two_row_item_secondary" + /> + +</LinearLayout> diff --git a/iget_android/app/src/main/res/layout/list_item_log.xml b/iget_android/app/src/main/res/layout/list_item_log.xml new file mode 100644 index 00000000..6b0b6e17 --- /dev/null +++ b/iget_android/app/src/main/res/layout/list_item_log.xml @@ -0,0 +1,12 @@ +<?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"> + + <TextView + android:id="@+id/log_line" + android:layout_width="match_parent" + android:layout_height="wrap_content"/> + +</LinearLayout>
\ No newline at end of file diff --git a/iget_android/app/src/main/res/layout/list_item_route_info_item.xml b/iget_android/app/src/main/res/layout/list_item_route_info_item.xml new file mode 100644 index 00000000..80185a43 --- /dev/null +++ b/iget_android/app/src/main/res/layout/list_item_route_info_item.xml @@ -0,0 +1,23 @@ +<?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/list_item_background_activated" + style="@style/default_linear_layout_padding" + > + + <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/iget_android/app/src/main/res/layout/list_item_route_item.xml b/iget_android/app/src/main/res/layout/list_item_route_item.xml new file mode 100644 index 00000000..af14e248 --- /dev/null +++ b/iget_android/app/src/main/res/layout/list_item_route_item.xml @@ -0,0 +1,23 @@ +<?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/list_item_background_activated" + style="@style/default_linear_layout_padding" + > + + <TextView + android:id="@+id/list_item_route_uri" + android:text="Route" + style="@style/two_row_item_title" + /> + + <TextView + android:id="@+id/list_item_face_list" + android:text="Faces" + style="@style/two_row_item_secondary" + /> + +</LinearLayout>
\ No newline at end of file diff --git a/iget_android/app/src/main/res/layout/list_item_setting_item.xml b/iget_android/app/src/main/res/layout/list_item_setting_item.xml new file mode 100644 index 00000000..2945775d --- /dev/null +++ b/iget_android/app/src/main/res/layout/list_item_setting_item.xml @@ -0,0 +1,21 @@ +<?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/list_item_background_activated" + style="@style/default_linear_layout_padding" + > + + <TextView + android:id="@+id/list_item_log_tag" + style="@style/two_row_item_title" + /> + + <TextView + android:id="@+id/list_item_setting_log_level" + style="@style/two_row_item_secondary" + /> + +</LinearLayout>
\ No newline at end of file |