summaryrefslogtreecommitdiff
path: root/src/ui/android/res
diff options
context:
space:
mode:
authorkr.angelov <kr.angelov@gmail.com>2013-10-11 08:15:33 +0000
committerkr.angelov <kr.angelov@gmail.com>2013-10-11 08:15:33 +0000
commitc40c5022caf18667b607578e3fb702bbe36ee836 (patch)
tree10cfe301259531e39dd2a65b6910a50e4e69a905 /src/ui/android/res
parent4d50c08714cc8d978bb2279e904204955e6c094a (diff)
better lexicon view
Diffstat (limited to 'src/ui/android/res')
-rw-r--r--src/ui/android/res/drawable-hdpi/open_arrow.pngbin0 -> 8107 bytes
-rw-r--r--src/ui/android/res/layout/activity_lexical_entry.xml36
-rw-r--r--src/ui/android/res/layout/lexical_item.xml21
-rw-r--r--src/ui/android/res/values/strings.xml4
4 files changed, 53 insertions, 8 deletions
diff --git a/src/ui/android/res/drawable-hdpi/open_arrow.png b/src/ui/android/res/drawable-hdpi/open_arrow.png
new file mode 100644
index 000000000..ec7453797
--- /dev/null
+++ b/src/ui/android/res/drawable-hdpi/open_arrow.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
index 75be89885..55bf51059 100644
--- a/src/ui/android/res/layout/activity_lexical_entry.xml
+++ b/src/ui/android/res/layout/activity_lexical_entry.xml
@@ -5,20 +5,44 @@
android:layout_width="match_parent"
>
- <org.grammaticalframework.ui.android.LanguageSelector
- android:id="@+id/show_language"
+ <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_alignParentTop="true"
- android:padding="0dp"
- />
+ 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/show_language"
+ android:layout_below="@id/lexical_desc"
android:orientation="vertical"
+ android:paddingLeft="1dp"
android:id="@android:id/list" >
</ListView>
</RelativeLayout> \ No newline at end of file
diff --git a/src/ui/android/res/layout/lexical_item.xml b/src/ui/android/res/layout/lexical_item.xml
new file mode 100644
index 000000000..0c56b6730
--- /dev/null
+++ b/src/ui/android/res/layout/lexical_item.xml
@@ -0,0 +1,21 @@
+<?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/icon"
+ 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="fill_parent"
+ android:layout_toRightOf="@+id/icon"
+ android:paddingLeft="10dp"
+ android:textSize="25sp"/>
+</RelativeLayout> \ No newline at end of file
diff --git a/src/ui/android/res/values/strings.xml b/src/ui/android/res/values/strings.xml
index ca5ea7317..2720ed10c 100644
--- a/src/ui/android/res/values/strings.xml
+++ b/src/ui/android/res/values/strings.xml
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
- <string name="app_name">GF4Translator</string>
+ <string name="app_name">GF Translator</string>
<string name="microphone">Microphone</string>
<string name="switch_languages">Switch languages</string>
-
+ <string name="open_image">Opening</string>
</resources>