summaryrefslogtreecommitdiff
path: root/src/ui/android/res/layout
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/android/res/layout')
-rw-r--r--src/ui/android/res/layout/activity_help.xml11
-rw-r--r--src/ui/android/res/layout/activity_lexical_entry.xml80
-rw-r--r--src/ui/android/res/layout/activity_main.xml91
-rw-r--r--src/ui/android/res/layout/activity_navigation.xml16
-rw-r--r--src/ui/android/res/layout/activity_semantic_graph.xml61
-rw-r--r--src/ui/android/res/layout/alternative_item.xml36
-rw-r--r--src/ui/android/res/layout/checkbox_input_list_item.xml13
-rw-r--r--src/ui/android/res/layout/first_person_utterance.xml11
-rw-r--r--src/ui/android/res/layout/fragment_phrase_list.xml16
-rw-r--r--src/ui/android/res/layout/fragment_translator.xml60
-rw-r--r--src/ui/android/res/layout/input.xml9
-rw-r--r--src/ui/android/res/layout/keyboard_languages_options.xml20
-rw-r--r--src/ui/android/res/layout/languages_item.xml8
-rw-r--r--src/ui/android/res/layout/lexical_item.xml27
-rw-r--r--src/ui/android/res/layout/number_input_list_item.xml28
-rw-r--r--src/ui/android/res/layout/phrase_list_item.xml13
-rw-r--r--src/ui/android/res/layout/second_person_utterance.xml12
-rw-r--r--src/ui/android/res/layout/spinner_input_list_item.xml19
18 files changed, 0 insertions, 531 deletions
diff --git a/src/ui/android/res/layout/activity_help.xml b/src/ui/android/res/layout/activity_help.xml
deleted file mode 100644
index 3cb88a569..000000000
--- a/src/ui/android/res/layout/activity_help.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent" >
-
- <WebView
- android:id="@+id/help_content"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- />
-</RelativeLayout>
diff --git a/src/ui/android/res/layout/activity_lexical_entry.xml b/src/ui/android/res/layout/activity_lexical_entry.xml
deleted file mode 100644
index fa49f252b..000000000
--- a/src/ui/android/res/layout/activity_lexical_entry.xml
+++ /dev/null
@@ -1,80 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<FrameLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_height="match_parent"
- android:layout_width="match_parent">
-
- <android.support.v4.widget.DrawerLayout
- android:id="@+id/drawer_layout"
- android:layout_width="match_parent"
- android:layout_height="match_parent">
-
- <!-- The main content view -->
- <RelativeLayout
- android:layout_height="match_parent"
- android:layout_width="match_parent">
-
- <RelativeLayout
- android:id="@+id/lexical_header"
- android:layout_height="wrap_content"
- android:layout_width="match_parent"
- android:layout_alignParentTop="true"
- android:layout_alignParentLeft="true"
- android:layout_alignParentRight="true"
- android:padding="8dp"
- android:background="#C0C0C0">
-
- <org.grammaticalframework.ui.android.LanguageSelector
- android:id="@+id/show_language"
- android:layout_height="wrap_content"
- android:layout_width="match_parent"
- android:layout_alignParentLeft="true"
- android:layout_alignParentTop="true"
- android:padding="0dp"/>
-
- </RelativeLayout>
-
- <TextView
- android:id="@+id/lexical_desc"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:layout_below="@+id/lexical_header"
- android:paddingLeft="1dp"
- android:paddingTop="4dp"
- android:paddingBottom="2dp"
- android:textSize="25sp"/>
-
- <ListView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_below="@id/lexical_desc"
- android:orientation="vertical"
- android:paddingLeft="1dp"
- android:id="@android:id/list" >
- </ListView>
- </RelativeLayout>
-
- <!-- The navigation drawer -->
- <ListView android:id="@+id/topics_list"
- android:layout_width="250dp"
- android:layout_height="match_parent"
- android:layout_gravity="start"
- android:choiceMode="singleChoice"
- android:divider="@android:color/transparent"
- android:dividerHeight="0dp"
- android:background="#FFFFE0"/>
- </android.support.v4.widget.DrawerLayout>
-
- <LinearLayout
- android:id="@+id/progressBarView"
- android:gravity="center"
- android:visibility="gone"
- android:background="#00000000"
- android:layout_height="match_parent"
- android:layout_width="match_parent">
-
- <ProgressBar
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"/>
- </LinearLayout>
-</FrameLayout>
diff --git a/src/ui/android/res/layout/activity_main.xml b/src/ui/android/res/layout/activity_main.xml
deleted file mode 100644
index b77fe5857..000000000
--- a/src/ui/android/res/layout/activity_main.xml
+++ /dev/null
@@ -1,91 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<FrameLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_height="match_parent"
- android:layout_width="match_parent">
-
- <RelativeLayout
- android:layout_height="match_parent"
- android:layout_width="match_parent">
-
- <RelativeLayout
- android:id="@+id/top_bg"
- android:layout_height="wrap_content"
- android:layout_width="match_parent"
- android:layout_alignParentTop="true"
- android:layout_alignParentLeft="true"
- android:layout_alignParentRight="true"
- android:padding="8dp"
- android:background="#C0C0C0">
-
- <ImageView
- android:id="@+id/start_stop"
- android:layout_height="wrap_content"
- android:layout_width="wrap_content"
- android:layout_alignTop="@+id/source_language"
- android:layout_alignBottom="@+id/target_language"
- android:layout_alignParentRight="true"
- android:padding="8dp"
- android:src="@drawable/ic_mic"
- android:contentDescription="@string/microphone"/>
-
- <ImageView
- android:id="@+id/switch_languages"
- android:layout_height="wrap_content"
- android:layout_width="wrap_content"
- android:layout_alignTop="@+id/source_language"
- android:layout_alignBottom="@+id/target_language"
- android:layout_toLeftOf="@id/start_stop"
- android:padding="8dp"
- android:src="@drawable/ic_action_switch"
- android:contentDescription="@string/switch_languages"/>
-
- <org.grammaticalframework.ui.android.LanguageSelector
- android:id="@+id/source_language"
- android:layout_height="wrap_content"
- android:layout_width="match_parent"
- android:layout_alignParentLeft="true"
- android:layout_alignParentTop="true"
- android:layout_toLeftOf="@id/switch_languages"
- android:padding="0dp"/>
-
- <org.grammaticalframework.ui.android.LanguageSelector
- android:id="@+id/target_language"
- android:layout_height="wrap_content"
- android:layout_width="match_parent"
- android:layout_below="@id/source_language"
- android:layout_toLeftOf="@id/switch_languages"
- android:padding="0dp"/>
- </RelativeLayout>
-
- <org.grammaticalframework.ui.android.ConversationView
- android:id="@+id/conversation"
- android:layout_height="match_parent"
- android:layout_width="match_parent"
- android:layout_alignParentLeft="true"
- android:layout_alignParentBottom="true"
- android:layout_alignParentRight="true"
- android:layout_below="@id/top_bg">
-
- <LinearLayout
- android:id="@+id/conversation_content"
- android:layout_height="wrap_content"
- android:layout_width="match_parent"
- android:orientation="vertical"
- android:padding="16dp"/>
- </org.grammaticalframework.ui.android.ConversationView>
- </RelativeLayout>
-
- <LinearLayout
- android:id="@+id/progressBarView"
- android:gravity="center"
- android:visibility="gone"
- android:background="#00000000"
- android:layout_height="match_parent"
- android:layout_width="match_parent">
-
- <ProgressBar
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"/>
- </LinearLayout>
-</FrameLayout> \ No newline at end of file
diff --git a/src/ui/android/res/layout/activity_navigation.xml b/src/ui/android/res/layout/activity_navigation.xml
deleted file mode 100644
index 44311b90d..000000000
--- a/src/ui/android/res/layout/activity_navigation.xml
+++ /dev/null
@@ -1,16 +0,0 @@
-<!-- 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/activity_semantic_graph.xml b/src/ui/android/res/layout/activity_semantic_graph.xml
deleted file mode 100644
index 004e22a7c..000000000
--- a/src/ui/android/res/layout/activity_semantic_graph.xml
+++ /dev/null
@@ -1,61 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<FrameLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_height="match_parent"
- android:layout_width="match_parent">
-
- <RelativeLayout
- android:layout_height="match_parent"
- android:layout_width="match_parent">
-
- <RelativeLayout
- android:id="@+id/graph_header"
- android:layout_height="wrap_content"
- android:layout_width="match_parent"
- android:layout_alignParentTop="true"
- android:layout_alignParentLeft="true"
- android:layout_alignParentRight="true"
- android:padding="8dp"
- android:background="#C0C0C0">
-
- <ImageView
- android:id="@+id/add_word"
- android:layout_height="wrap_content"
- android:layout_width="wrap_content"
- android:layout_alignParentRight="true"
- android:padding="8dp"
- android:src="@drawable/ic_search_black_24dp"/>
-
- <org.grammaticalframework.ui.android.LanguageSelector
- android:id="@+id/show_language"
- android:layout_height="wrap_content"
- android:layout_width="match_parent"
- android:layout_alignParentLeft="true"
- android:layout_alignParentTop="true"
- android:layout_toLeftOf="@id/add_word"
- android:padding="0dp"/>
- </RelativeLayout>
-
- <org.grammaticalframework.ui.android.SemanticGraphView
- android:id="@+id/semantic_graph"
- android:layout_height="match_parent"
- android:layout_width="match_parent"
- android:layout_alignParentLeft="true"
- android:layout_alignParentBottom="true"
- android:layout_alignParentRight="true"
- android:layout_below="@id/graph_header"/>
- </RelativeLayout>
-
- <LinearLayout
- android:id="@+id/progressBarView"
- android:gravity="center"
- android:visibility="gone"
- android:background="#00000000"
- android:layout_height="match_parent"
- android:layout_width="match_parent">
-
- <ProgressBar
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"/>
- </LinearLayout>
-</FrameLayout>
diff --git a/src/ui/android/res/layout/alternative_item.xml b/src/ui/android/res/layout/alternative_item.xml
deleted file mode 100644
index f35d1b938..000000000
--- a/src/ui/android/res/layout/alternative_item.xml
+++ /dev/null
@@ -1,36 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent" >
- <ImageView
- android:id="@+id/arrow"
- android:layout_width="30dp"
- android:layout_height="30dp"
- android:contentDescription="@string/open_image"
- android:src="@drawable/open_arrow"
- android:paddingLeft="10dp"
- android:paddingRight="5dp" />
-
- <TextView
- android:id="@+id/alternative_desc"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:layout_toRightOf="@id/arrow"
- android:paddingLeft="10dp"
- android:textSize="25sp"/>
-
- <org.grammaticalframework.ui.android.ParseTreeView
- android:id="@+id/desc_details"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_below="@id/alternative_desc"
- android:textSize="25sp"
- />
-
- <TextView
- android:id="@+id/abstract_tree"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:layout_below="@id/desc_details"
- android:textSize="15sp"/>
-</RelativeLayout> \ No newline at end of file
diff --git a/src/ui/android/res/layout/checkbox_input_list_item.xml b/src/ui/android/res/layout/checkbox_input_list_item.xml
deleted file mode 100644
index 255d0ae8d..000000000
--- a/src/ui/android/res/layout/checkbox_input_list_item.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-<?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">
-
- <CheckBox
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:textSize="15sp"
- android:id="@+id/choice_checkbox" />
-
-</LinearLayout>
diff --git a/src/ui/android/res/layout/first_person_utterance.xml b/src/ui/android/res/layout/first_person_utterance.xml
deleted file mode 100644
index 97171149c..000000000
--- a/src/ui/android/res/layout/first_person_utterance.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<EditText xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_height="wrap_content"
- android:layout_width="wrap_content"
- android:layout_marginBottom="16dp"
- android:layout_gravity="left"
- android:padding="8dp"
- android:textSize="20sp"
- android:inputType="textNoSuggestions"
- android:background="@drawable/first_person_utterance_bg"
- />
diff --git a/src/ui/android/res/layout/fragment_phrase_list.xml b/src/ui/android/res/layout/fragment_phrase_list.xml
deleted file mode 100644
index 1868da31c..000000000
--- a/src/ui/android/res/layout/fragment_phrase_list.xml
+++ /dev/null
@@ -1,16 +0,0 @@
-<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"
- android:descendantFocusability="blocksDescendants"
- tools:context="se.chalmers.phrasebook.gui.fragments.PhraseListFragment">
-
- <ListView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:id="@+id/phrase_listView"
- android:layout_alignParentRight="true"
- android:layout_alignParentTop="true"
- />
-
-</FrameLayout>
diff --git a/src/ui/android/res/layout/fragment_translator.xml b/src/ui/android/res/layout/fragment_translator.xml
deleted file mode 100644
index 6b6584f98..000000000
--- a/src/ui/android/res/layout/fragment_translator.xml
+++ /dev/null
@@ -1,60 +0,0 @@
-<?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">
-
- <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>
-
- <ListView 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:divider="@android:color/transparent"
- android:padding="8dp"/>
-</LinearLayout>
diff --git a/src/ui/android/res/layout/input.xml b/src/ui/android/res/layout/input.xml
deleted file mode 100644
index fdef07a53..000000000
--- a/src/ui/android/res/layout/input.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-
-<org.grammaticalframework.ui.android.TranslatorKeyboardView
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/keyboard"
- android:layout_alignParentBottom="true"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- />
diff --git a/src/ui/android/res/layout/keyboard_languages_options.xml b/src/ui/android/res/layout/keyboard_languages_options.xml
deleted file mode 100644
index 17512df19..000000000
--- a/src/ui/android/res/layout/keyboard_languages_options.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<TableLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:padding="5dp"
- android:layout_margin="1dp"
- >
- <ImageButton android:id="@+id/closeButton"
- android:background="@android:color/transparent"
- android:src="@drawable/btn_close"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:layout_marginStart="8dp"
- android:padding="5dp"
- android:clickable="true"
- />
-</TableLayout> \ No newline at end of file
diff --git a/src/ui/android/res/layout/languages_item.xml b/src/ui/android/res/layout/languages_item.xml
deleted file mode 100644
index d5f47ab27..000000000
--- a/src/ui/android/res/layout/languages_item.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<TextView
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_height="wrap_content"
- android:layout_width="match_parent"
- android:padding="8dp"
- android:textSize="20sp"
- />
diff --git a/src/ui/android/res/layout/lexical_item.xml b/src/ui/android/res/layout/lexical_item.xml
deleted file mode 100644
index 1d3835e54..000000000
--- a/src/ui/android/res/layout/lexical_item.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent" >
- <ImageView
- android:id="@+id/arrow"
- android:layout_width="30dp"
- android:layout_height="30dp"
- android:contentDescription="@string/open_image"
- android:src="@drawable/open_arrow"
- android:paddingLeft="10dp"
- android:paddingRight="5dp" />
-
- <TextView
- android:id="@+id/lexical_desc"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:layout_toRightOf="@id/arrow"
- android:paddingLeft="10dp"
- android:textSize="25sp"/>
-
- <WebView
- android:id="@+id/desc_details"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_below="@id/lexical_desc"/>
-</RelativeLayout>
diff --git a/src/ui/android/res/layout/number_input_list_item.xml b/src/ui/android/res/layout/number_input_list_item.xml
deleted file mode 100644
index a3cfa07e5..000000000
--- a/src/ui/android/res/layout/number_input_list_item.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-<?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/phrase_list_item.xml b/src/ui/android/res/layout/phrase_list_item.xml
deleted file mode 100644
index f812ad871..000000000
--- a/src/ui/android/res/layout/phrase_list_item.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-<?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/second_person_utterance.xml b/src/ui/android/res/layout/second_person_utterance.xml
deleted file mode 100644
index 416d85328..000000000
--- a/src/ui/android/res/layout/second_person_utterance.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<TextView
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_height="wrap_content"
- android:layout_width="wrap_content"
- android:layout_marginBottom="16dp"
- android:layout_marginLeft="32dp"
- android:layout_gravity="right"
- android:padding="8dp"
- android:textSize="20sp"
- android:background="@drawable/second_person_utterance_bg"
- />
diff --git a/src/ui/android/res/layout/spinner_input_list_item.xml b/src/ui/android/res/layout/spinner_input_list_item.xml
deleted file mode 100644
index be07004f4..000000000
--- a/src/ui/android/res/layout/spinner_input_list_item.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-<?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"
- 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>