summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorJoe Robinson <joe@lc8n.com>2013-02-02 22:18:05 +0000
committerJoe Robinson <joe@lc8n.com>2013-02-02 22:18:05 +0000
commitda2df98f789f2531142835dc43566ccda9583c22 (patch)
tree1e87bd9465192e3db33d33ff6c08e0dd0abeacf6 /res
parentbffa5e5ea8a852bae02f724d9758edd54776b885 (diff)
Updated file browser to show icons, size, and modified time. Also added
a button to go up a directory, and go to a specified directory
Diffstat (limited to 'res')
-rw-r--r--res/drawable-ldpi/binary.pngbin0 -> 310 bytes
-rw-r--r--res/drawable-ldpi/compressed.pngbin0 -> 1108 bytes
-rw-r--r--res/drawable-ldpi/folder.pngbin0 -> 295 bytes
-rw-r--r--res/drawable-ldpi/generic.pngbin0 -> 275 bytes
-rw-r--r--res/drawable-ldpi/image.pngbin0 -> 371 bytes
-rw-r--r--res/drawable-ldpi/link.pngbin0 -> 314 bytes
-rw-r--r--res/drawable-ldpi/movie.pngbin0 -> 272 bytes
-rw-r--r--res/drawable-ldpi/music.pngbin0 -> 315 bytes
-rw-r--r--res/drawable-ldpi/text.pngbin0 -> 288 bytes
-rw-r--r--res/drawable-ldpi/unknown.pngbin0 -> 307 bytes
-rw-r--r--res/drawable-mdpi/up_arrow.pngbin0 -> 899 bytes
-rw-r--r--res/layout/browser.xml32
-rw-r--r--res/layout/filerow.xml51
13 files changed, 72 insertions, 11 deletions
diff --git a/res/drawable-ldpi/binary.png b/res/drawable-ldpi/binary.png
new file mode 100644
index 0000000..c86d3e9
--- /dev/null
+++ b/res/drawable-ldpi/binary.png
Binary files differ
diff --git a/res/drawable-ldpi/compressed.png b/res/drawable-ldpi/compressed.png
new file mode 100644
index 0000000..1959b85
--- /dev/null
+++ b/res/drawable-ldpi/compressed.png
Binary files differ
diff --git a/res/drawable-ldpi/folder.png b/res/drawable-ldpi/folder.png
new file mode 100644
index 0000000..df03153
--- /dev/null
+++ b/res/drawable-ldpi/folder.png
Binary files differ
diff --git a/res/drawable-ldpi/generic.png b/res/drawable-ldpi/generic.png
new file mode 100644
index 0000000..478e06e
--- /dev/null
+++ b/res/drawable-ldpi/generic.png
Binary files differ
diff --git a/res/drawable-ldpi/image.png b/res/drawable-ldpi/image.png
new file mode 100644
index 0000000..1fe3209
--- /dev/null
+++ b/res/drawable-ldpi/image.png
Binary files differ
diff --git a/res/drawable-ldpi/link.png b/res/drawable-ldpi/link.png
new file mode 100644
index 0000000..f53339b
--- /dev/null
+++ b/res/drawable-ldpi/link.png
Binary files differ
diff --git a/res/drawable-ldpi/movie.png b/res/drawable-ldpi/movie.png
new file mode 100644
index 0000000..131e9dc
--- /dev/null
+++ b/res/drawable-ldpi/movie.png
Binary files differ
diff --git a/res/drawable-ldpi/music.png b/res/drawable-ldpi/music.png
new file mode 100644
index 0000000..8cbbe02
--- /dev/null
+++ b/res/drawable-ldpi/music.png
Binary files differ
diff --git a/res/drawable-ldpi/text.png b/res/drawable-ldpi/text.png
new file mode 100644
index 0000000..c43fb62
--- /dev/null
+++ b/res/drawable-ldpi/text.png
Binary files differ
diff --git a/res/drawable-ldpi/unknown.png b/res/drawable-ldpi/unknown.png
new file mode 100644
index 0000000..e4e2982
--- /dev/null
+++ b/res/drawable-ldpi/unknown.png
Binary files differ
diff --git a/res/drawable-mdpi/up_arrow.png b/res/drawable-mdpi/up_arrow.png
new file mode 100644
index 0000000..7303851
--- /dev/null
+++ b/res/drawable-mdpi/up_arrow.png
Binary files differ
diff --git a/res/layout/browser.xml b/res/layout/browser.xml
index e4edd98..4ba2fe4 100644
--- a/res/layout/browser.xml
+++ b/res/layout/browser.xml
@@ -3,15 +3,35 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
- <TextView
- android:id="@+id/directoryname"
- android:layout_width="fill_parent"
- android:layout_height="50dp"
- android:background="#CCCCCC" />
+
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal" >
+ <ImageButton
+ android:id="@+id/upDirButton"
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent"
+ android:src="@drawable/up_arrow" />
+
+ <EditText
+ android:id="@+id/directoryname"
+ android:layout_width="0dp"
+ android:layout_height="match_parent"
+ android:layout_weight="0.5"
+ android:inputType="textUri" />
+
+ <ImageButton
+ android:id="@+id/goDirButton"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:src="@android:drawable/ic_media_play" />
+
+ </LinearLayout>
<ListView
android:id="@+id/filelist"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
</ListView>
-
</LinearLayout> \ No newline at end of file
diff --git a/res/layout/filerow.xml b/res/layout/filerow.xml
index 2780514..abede54 100644
--- a/res/layout/filerow.xml
+++ b/res/layout/filerow.xml
@@ -1,6 +1,47 @@
<?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="30sp">
-</TextView>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="horizontal"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent" >
+ <ImageView android:id="@+id/fileicon"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_margin="5dp"/>
+ <LinearLayout
+ android:orientation="vertical"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content">
+
+ <TextView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/filetext"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:textStyle="bold">
+ </TextView>
+ <LinearLayout
+ android:orientation="horizontal"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent">
+
+ <TextView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/filesize"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="0.5">
+ </TextView>
+
+ <TextView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/filemodified"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="0.5"
+ android:gravity="right"
+ android:layout_marginRight="5dp" >
+
+ </TextView>
+ </LinearLayout>
+ </LinearLayout>
+</LinearLayout> \ No newline at end of file