summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorDavid A. Madore <david@procyon.(none)>2010-04-25 21:54:54 +0200
committerDavid A. Madore <david@procyon.(none)>2010-04-25 21:54:54 +0200
commitdfccb7883425392290f5bf9afc845bae776320e9 (patch)
tree45716bdd91ba06d8c525e072c9738705643c08d4 /res
parent8d56c5f19480646445fc277ee14addad597617c6 (diff)
downloadUnicodeMap-dfccb7883425392290f5bf9afc845bae776320e9.tar.gz
UnicodeMap-dfccb7883425392290f5bf9afc845bae776320e9.tar.bz2
UnicodeMap-dfccb7883425392290f5bf9afc845bae776320e9.zip
List layout: display characters differently from their labels.
This is done by making UnicodeCharacter implement Map<String,String> so as to use it in a SimpleAdapter, but really, this is ugly.
Diffstat (limited to 'res')
-rw-r--r--res/layout/list_item.xml18
-rw-r--r--res/layout/map_item.xml8
2 files changed, 22 insertions, 4 deletions
diff --git a/res/layout/list_item.xml b/res/layout/list_item.xml
index 383895f..3b8c592 100644
--- a/res/layout/list_item.xml
+++ b/res/layout/list_item.xml
@@ -1,7 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
-<TextView xmlns:android="http://schemas.android.com/apk/res/android"
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
- android:padding="10dp"
- android:textSize="16sp"
- />
+ android:orientation="horizontal"
+ android:padding="10dp">
+ <TextView android:id="@+id/charText"
+ android:layout_width="32sp"
+ android:layout_height="fill_parent"
+ android:textSize="18sp"
+ android:textColor="#ffffff80" />
+ <TextView android:id="@+id/labelText"
+ android:layout_width="0dip"
+ android:layout_height="fill_parent"
+ android:layout_weight="1"
+ android:textSize="16sp" />
+</LinearLayout>
diff --git a/res/layout/map_item.xml b/res/layout/map_item.xml
new file mode 100644
index 0000000..fcaf32d
--- /dev/null
+++ b/res/layout/map_item.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<TextView xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:padding="10dp"
+ android:textSize="16sp"
+ android:textStyle="bold"
+ />