From cecbf5067b623fa1991706125cff7cdc3d326c2e Mon Sep 17 00:00:00 2001 From: yang-chao Date: Sat, 6 Jul 2013 14:45:09 +0800 Subject: [PATCH 1/7] GUI refactory for file view --- AndroidManifest.xml | 3 +- res/layout/dropdown_item.xml | 14 +- res/layout/file_browser_item.xml | 16 +- res/layout/file_explorer_list.xml | 140 ++++++++++-------- res/values/styles.xml | 6 + .../fileexplorer/FileExplorerTabActivity.java | 10 +- .../micode/fileexplorer/FileViewActivity.java | 4 +- .../fileexplorer/FileViewInteractionHub.java | 49 +++--- src/net/micode/fileexplorer/Util.java | 4 +- 9 files changed, 136 insertions(+), 110 deletions(-) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index c7240d8..4581ffb 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -42,8 +42,7 @@ + android:screenOrientation="portrait"> diff --git a/res/layout/dropdown_item.xml b/res/layout/dropdown_item.xml index 3feff00..b977668 100755 --- a/res/layout/dropdown_item.xml +++ b/res/layout/dropdown_item.xml @@ -11,26 +11,26 @@ android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center_vertical" - android:orientation="horizontal" - android:layout_marginLeft="10dip"> + android:orientation="vertical" + android:layout_margin="10dip"> + android:layout_margin="2dip" /> - \ No newline at end of file + diff --git a/res/layout/file_browser_item.xml b/res/layout/file_browser_item.xml index e966756..ed53790 100755 --- a/res/layout/file_browser_item.xml +++ b/res/layout/file_browser_item.xml @@ -5,18 +5,19 @@ android:layout_height="wrap_content" android:paddingTop="5dip" android:paddingBottom="5dip" + android:paddingLeft="3dip" android:orientation="horizontal" android:gravity="center_vertical"> @@ -76,7 +78,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="left" - android:layout_marginLeft="14px" + android:layout_marginLeft="14dip" android:gravity="left" android:textAppearance="?android:attr/textAppearanceSmall" /> diff --git a/res/layout/file_explorer_list.xml b/res/layout/file_explorer_list.xml index 005b80b..fc0d200 100755 --- a/res/layout/file_explorer_list.xml +++ b/res/layout/file_explorer_list.xml @@ -9,6 +9,7 @@ - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + +