From 3727806652d401fbac7e4137af51fd0c38422402 Mon Sep 17 00:00:00 2001 From: Lennart Rosam Date: Fri, 18 May 2012 08:09:31 +0200 Subject: [PATCH] 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 | 197 +++++++++++++-------- res/layout/files.xml | 1 + res/values/colors.xml | 2 +- res/values/strings.xml | 5 + src/eu/alefzero/owncloud/DisplayUtils.java | 2 +- .../owncloud/ui/fragment/FileDetailFragment.java | 39 ++-- 8 files changed, 148 insertions(+), 102 deletions(-) diff --git a/res/drawable/icon_list_selector.xml b/res/drawable/icon_list_selector.xml index d9f8d683..f7c83929 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 d9f8d683..f7c83929 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 f4cd33f4..99c09bc5 100644 --- a/res/layout/file_details_fragment.xml +++ b/res/layout/file_details_fragment.xml @@ -1,5 +1,5 @@ - +--> - - - - - - - + android:layout_height="fill_parent" > - - - - - - - - + android:layout_alignParentLeft="true" + android:layout_marginLeft="16dp" + android:src="@drawable/file" /> - + android:layout_alignBottom="@+id/fdIcon" + android:layout_centerHorizontal="true" + android:text="file.name" + android:textAppearance="?android:attr/textAppearanceLarge" /> - - + android:layout_height="wrap_content" > + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - + + +