summaryrefslogtreecommitdiff
path: root/res/layout
diff options
context:
space:
mode:
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/browser.xml32
-rw-r--r--res/layout/filerow.xml51
2 files changed, 72 insertions, 11 deletions
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