diff options
author | Joe Robinson <joe@lc8n.com> | 2013-02-02 22:18:05 +0000 |
---|---|---|
committer | Joe Robinson <joe@lc8n.com> | 2013-02-02 22:18:05 +0000 |
commit | da2df98f789f2531142835dc43566ccda9583c22 (patch) | |
tree | 1e87bd9465192e3db33d33ff6c08e0dd0abeacf6 /res/layout/filerow.xml | |
parent | bffa5e5ea8a852bae02f724d9758edd54776b885 (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/layout/filerow.xml')
-rw-r--r-- | res/layout/filerow.xml | 51 |
1 files changed, 46 insertions, 5 deletions
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 |