summaryrefslogtreecommitdiff
path: root/src/ui/android/res/layout
diff options
context:
space:
mode:
authorkrasimir <krasimir@chalmers.se>2016-05-23 09:54:27 +0000
committerkrasimir <krasimir@chalmers.se>2016-05-23 09:54:27 +0000
commit228161eed4d0316c9150b190b528c4405a7f7b3b (patch)
tree393609f418b2a51fd437e2c6cc909025e3a1b629 /src/ui/android/res/layout
parent649ab21ceccb09aa9490863bddcb9597898e7217 (diff)
add the relevant code from Parlira to the GFTranslator
Diffstat (limited to 'src/ui/android/res/layout')
-rw-r--r--src/ui/android/res/layout/activity_navigation.xml16
-rw-r--r--src/ui/android/res/layout/advanced_options_button.xml13
-rw-r--r--src/ui/android/res/layout/fragment_translator.xml47
-rw-r--r--src/ui/android/res/layout/phrase_list_item.xml13
-rw-r--r--src/ui/android/res/layout/small_fragment_input_holder.xml16
-rw-r--r--src/ui/android/res/layout/small_fragment_number.xml28
-rw-r--r--src/ui/android/res/layout/small_fragment_options.xml59
-rw-r--r--src/ui/android/res/layout/small_fragment_spinner.xml20
-rw-r--r--src/ui/android/res/layout/small_fragment_swipe.xml15
-rw-r--r--src/ui/android/res/layout/small_fragment_translation.xml45
10 files changed, 272 insertions, 0 deletions
diff --git a/src/ui/android/res/layout/activity_navigation.xml b/src/ui/android/res/layout/activity_navigation.xml
new file mode 100644
index 000000000..44311b90d
--- /dev/null
+++ b/src/ui/android/res/layout/activity_navigation.xml
@@ -0,0 +1,16 @@
+<!-- A DrawerLayout is intended to be used as the top-level content view using match_parent for both width and height to consume the full space available. -->
+<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=".gui.activities.NavigationActivity">
+
+ <!-- As the main content view, the view below consumes the entire
+ space available using match_parent in both dimensions. -->
+ <FrameLayout
+ android:id="@+id/container"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" />
+
+</android.support.v4.widget.DrawerLayout>
diff --git a/src/ui/android/res/layout/advanced_options_button.xml b/src/ui/android/res/layout/advanced_options_button.xml
new file mode 100644
index 000000000..140dfebb9
--- /dev/null
+++ b/src/ui/android/res/layout/advanced_options_button.xml
@@ -0,0 +1,13 @@
+<?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">
+
+ <CheckBox
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="Activate Advanced Options"
+ android:id="@+id/checkBox" />
+
+</LinearLayout> \ No newline at end of file
diff --git a/src/ui/android/res/layout/fragment_translator.xml b/src/ui/android/res/layout/fragment_translator.xml
new file mode 100644
index 000000000..5cf529846
--- /dev/null
+++ b/src/ui/android/res/layout/fragment_translator.xml
@@ -0,0 +1,47 @@
+<?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">
+
+
+ <FrameLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:id="@+id/containerfor_translation"
+ android:layout_marginLeft="0dp"
+ android:layout_marginTop="0dp">
+
+ </FrameLayout>
+
+ <FrameLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:id="@+id/containerfor_options"
+ android:layout_marginLeft="0dp"
+ android:layout_marginTop="0dp">
+
+ <LinearLayout
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:id="@+id/dots"
+ android:orientation="horizontal"
+ android:gravity="center_vertical"
+ android:layout_gravity="center|bottom">
+
+ <ImageView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:id="@+id/firstDot"
+ android:src="@drawable/ic_dictionary" />
+
+ <ImageView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:id="@+id/secondDot"
+ android:src="@drawable/ic_dictionary" />
+ </LinearLayout>
+ </FrameLayout>
+</LinearLayout>
diff --git a/src/ui/android/res/layout/phrase_list_item.xml b/src/ui/android/res/layout/phrase_list_item.xml
new file mode 100644
index 000000000..f812ad871
--- /dev/null
+++ b/src/ui/android/res/layout/phrase_list_item.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:textSize="18dp"
+ android:textColor="@color/text_colour_light"
+ android:fontFamily="sans-serif-light"
+ android:text="New Text"
+ android:id="@+id/textView3"
+ android:padding="8dp"
+ xmlns:android="http://schemas.android.com/apk/res/android" />
+
diff --git a/src/ui/android/res/layout/small_fragment_input_holder.xml b/src/ui/android/res/layout/small_fragment_input_holder.xml
new file mode 100644
index 000000000..a197ffbf5
--- /dev/null
+++ b/src/ui/android/res/layout/small_fragment_input_holder.xml
@@ -0,0 +1,16 @@
+<?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"
+ android:id="@+id/input_holder"
+ android:padding="8dp"
+ >
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="New Text"
+ android:textSize="25dp"
+ android:id="@+id/holderOptionText" />
+
+</LinearLayout> \ No newline at end of file
diff --git a/src/ui/android/res/layout/small_fragment_number.xml b/src/ui/android/res/layout/small_fragment_number.xml
new file mode 100644
index 000000000..a3cfa07e5
--- /dev/null
+++ b/src/ui/android/res/layout/small_fragment_number.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="match_parent"
+ >
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="New Text"
+ android:textSize="15sp"
+ android:id="@+id/textView_number" />
+
+ <SeekBar
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:max="100"
+ android:id="@+id/seekBar" />
+
+ <EditText
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:inputType="numberPassword"
+ android:ems="10"
+ android:id="@+id/editNumber" />
+
+
+</LinearLayout> \ No newline at end of file
diff --git a/src/ui/android/res/layout/small_fragment_options.xml b/src/ui/android/res/layout/small_fragment_options.xml
new file mode 100644
index 000000000..bfd69e16f
--- /dev/null
+++ b/src/ui/android/res/layout/small_fragment_options.xml
@@ -0,0 +1,59 @@
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:orientation="vertical"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:padding="16dp"
+ tools:context=".gui.smallFragments.OptionsFragment"
+ >
+
+ <ScrollView
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:id="@+id/scrollView" >
+
+ <LinearLayout
+ android:orientation="vertical"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <FrameLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:id="@+id/child_fragment1">
+ </FrameLayout>
+
+ <FrameLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:id="@+id/child_fragment2">
+ </FrameLayout>
+
+ <FrameLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:id="@+id/child_fragment3">
+ </FrameLayout>
+
+ <FrameLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:id="@+id/child_fragment4">
+ </FrameLayout>
+
+ <FrameLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:id="@+id/child_fragment5">
+ </FrameLayout>
+
+ <FrameLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:id="@+id/child_fragment6">
+ </FrameLayout>
+ </LinearLayout>
+ </ScrollView>
+
+
+</LinearLayout>
diff --git a/src/ui/android/res/layout/small_fragment_spinner.xml b/src/ui/android/res/layout/small_fragment_spinner.xml
new file mode 100644
index 000000000..acb7caac2
--- /dev/null
+++ b/src/ui/android/res/layout/small_fragment_spinner.xml
@@ -0,0 +1,20 @@
+<?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"
+ android:id="@+id/spinner_input">
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="New Text"
+ android:textSize="15sp"
+ android:id="@+id/text_view_spinner" />
+
+ <Spinner
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:id="@+id/choice_spinner" />
+
+</LinearLayout> \ No newline at end of file
diff --git a/src/ui/android/res/layout/small_fragment_swipe.xml b/src/ui/android/res/layout/small_fragment_swipe.xml
new file mode 100644
index 000000000..25fd8113d
--- /dev/null
+++ b/src/ui/android/res/layout/small_fragment_swipe.xml
@@ -0,0 +1,15 @@
+<FrameLayout 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"
+ tools:context=".gui.smallFragments.SwipeFragment"
+ android:id="@+id/fragment_swipe">
+
+
+ <android.support.v4.view.ViewPager
+ android:id="@+id/vpPager"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+ </android.support.v4.view.ViewPager>
+
+</FrameLayout>
diff --git a/src/ui/android/res/layout/small_fragment_translation.xml b/src/ui/android/res/layout/small_fragment_translation.xml
new file mode 100644
index 000000000..cc4d49053
--- /dev/null
+++ b/src/ui/android/res/layout/small_fragment_translation.xml
@@ -0,0 +1,45 @@
+<?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/grid_phrasebook_button"
+ android:layout_marginTop="10dp"
+ android:layout_marginLeft="10dp"
+ android:layout_marginRight="10dp"
+ android:id="@+id/fragment_translation">
+
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="New Text"
+ android:textSize="24dp"
+ android:id="@+id/origin_phrase"
+ android:layout_marginLeft="10dp"
+ android:layout_marginRight="10dp"
+ android:layout_marginTop="16dp"
+ android:layout_marginBottom="16dp"
+ android:maxLines="4"
+ android:scrollHorizontally="false"
+ />
+
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="New Text"
+ android:textSize="24dp"
+ android:id="@+id/target_phrase"
+ android:layout_marginLeft="10dp"
+ android:layout_marginRight="10dp"
+ android:maxLines="4"
+ android:scrollHorizontally="false"
+ />
+
+ <ImageView
+ android:id="@+id/button3"
+ android:layout_width="30dp"
+ android:layout_height="30dp"
+ android:layout_gravity="right"
+ android:src="@drawable/ic_volume_up_black_18dp"/>
+
+</LinearLayout>