summaryrefslogtreecommitdiff
path: root/src/ui/android/res
diff options
context:
space:
mode:
authorkr.angelov <kr.angelov@gmail.com>2013-10-10 15:39:52 +0000
committerkr.angelov <kr.angelov@gmail.com>2013-10-10 15:39:52 +0000
commit482e8ef8cdddc32e56f035876c1e093daf3d124d (patch)
tree54fda8af8c3216eeb3df50964ab6976f8ad026c3 /src/ui/android/res
parentc9b2e117828dd863268f649fcb163fbbf61d667f (diff)
an improvised dictionary mode in the Android translator
Diffstat (limited to 'src/ui/android/res')
-rw-r--r--src/ui/android/res/drawable-xhdpi/ic_dictionary.pngbin0 -> 3591 bytes
-rw-r--r--src/ui/android/res/layout/activity_lexical_entry.xml24
-rw-r--r--src/ui/android/res/layout/first_person_utterance.xml38
3 files changed, 51 insertions, 11 deletions
diff --git a/src/ui/android/res/drawable-xhdpi/ic_dictionary.png b/src/ui/android/res/drawable-xhdpi/ic_dictionary.png
new file mode 100644
index 000000000..985644ebd
--- /dev/null
+++ b/src/ui/android/res/drawable-xhdpi/ic_dictionary.png
Binary files differ
diff --git a/src/ui/android/res/layout/activity_lexical_entry.xml b/src/ui/android/res/layout/activity_lexical_entry.xml
new file mode 100644
index 000000000..75be89885
--- /dev/null
+++ b/src/ui/android/res/layout/activity_lexical_entry.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_height="match_parent"
+ android:layout_width="match_parent"
+ >
+
+ <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"
+ />
+
+ <ListView
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_below="@id/show_language"
+ android:orientation="vertical"
+ android:id="@android:id/list" >
+ </ListView>
+</RelativeLayout> \ No newline at end of file
diff --git a/src/ui/android/res/layout/first_person_utterance.xml b/src/ui/android/res/layout/first_person_utterance.xml
index 55779ae8f..ce0abf875 100644
--- a/src/ui/android/res/layout/first_person_utterance.xml
+++ b/src/ui/android/res/layout/first_person_utterance.xml
@@ -1,11 +1,27 @@
-<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_marginRight="32dp"
- android:layout_gravity="left"
- android:padding="8dp"
- android:textSize="20sp"
- android:background="@drawable/first_person_utterance_bg"
- />
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:background="@drawable/first_person_utterance_bg" >
+
+ <TextView
+ android:id="@+id/text"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:layout_marginBottom="16dp"
+ android:layout_gravity="left"
+ android:padding="8dp"
+ android:textSize="20sp"
+ />
+
+ <ImageView
+ android:id="@+id/show_word"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:layout_toRightOf="@id/text"
+ android:padding="8dp"
+ android:src="@drawable/ic_dictionary"
+ android:visibility="gone"
+ />
+
+</RelativeLayout> \ No newline at end of file