From ffc941e4407b1cb8989a8e87b032856ff9cfc8c0 Mon Sep 17 00:00:00 2001 From: Lennart Rosam Date: Fri, 18 May 2012 00:37:53 +0200 Subject: [PATCH 1/5] FileDetailsFragment now working on tablets --- res/layout-large-land/files.xml | 4 +-- .../ui/fragment/FileDetailFragment.java | 34 ++++++++++--------- .../ui/fragment/FileListFragment.java | 23 +++++++++++-- 3 files changed, 40 insertions(+), 21 deletions(-) diff --git a/res/layout-large-land/files.xml b/res/layout-large-land/files.xml index 68f8c86bae..aadb26922b 100644 --- a/res/layout-large-land/files.xml +++ b/res/layout-large-land/files.xml @@ -24,7 +24,7 @@ arg0, View arg1, int arg2, long arg3) { @@ -140,6 +156,7 @@ public class FileListFragment extends FragmentListView { public void onNavigateUp() { mDirNames.pop(); populateFileList(); + resetFileFragment(); } /** From 3727806652d401fbac7e4137af51fd0c38422402 Mon Sep 17 00:00:00 2001 From: Lennart Rosam Date: Fri, 18 May 2012 08:09:31 +0200 Subject: [PATCH 2/5] Intermediate commit: Work on new FileDetailFragment layout, simplified it's code a bit and renamed a color. Layout is WIP --- res/drawable/icon_list_selector.xml | 2 +- res/drawable/list_selector.xml | 2 +- res/layout/file_details_fragment.xml | 217 +++++++++++------- res/layout/files.xml | 1 + res/values/colors.xml | 2 +- res/values/strings.xml | 5 + src/eu/alefzero/owncloud/DisplayUtils.java | 2 +- .../ui/fragment/FileDetailFragment.java | 39 ++-- 8 files changed, 158 insertions(+), 112 deletions(-) diff --git a/res/drawable/icon_list_selector.xml b/res/drawable/icon_list_selector.xml index d9f8d683b7..f7c83929cf 100644 --- a/res/drawable/icon_list_selector.xml +++ b/res/drawable/icon_list_selector.xml @@ -17,7 +17,7 @@ - + diff --git a/res/drawable/list_selector.xml b/res/drawable/list_selector.xml index d9f8d683b7..f7c83929cf 100644 --- a/res/drawable/list_selector.xml +++ b/res/drawable/list_selector.xml @@ -17,7 +17,7 @@ - + diff --git a/res/layout/file_details_fragment.xml b/res/layout/file_details_fragment.xml index f4cd33f455..99c09bc585 100644 --- a/res/layout/file_details_fragment.xml +++ b/res/layout/file_details_fragment.xml @@ -1,5 +1,5 @@ - +--> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + android:layout_height="wrap_content" + android:orientation="vertical" > + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +