From: Lennart Rosam Date: Fri, 18 May 2012 12:05:21 +0000 (+0200) Subject: New Layout for FileDetailsFragment (needs to be redone with X-Git-Tag: oc-android-1.4.3~409^2~2 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/cb8761f66f2c8baa5bbbd93ad8ca0eb141020307 New Layout for FileDetailsFragment (needs to be redone with RelativeLayout for better performance), Fix AppCrashes on rotation change --- diff --git a/res/layout-large-land/files.xml b/res/layout-large-land/files.xml index aadb2692..32d86b0a 100644 --- a/res/layout-large-land/files.xml +++ b/res/layout-large-land/files.xml @@ -19,6 +19,7 @@ - - - - + \ No newline at end of file diff --git a/res/layout/file_activity_details.xml b/res/layout/file_activity_details.xml index 664d7562..f37270ba 100644 --- a/res/layout/file_activity_details.xml +++ b/res/layout/file_activity_details.xml @@ -1,5 +1,5 @@ - + along with this program. If not, see . +--> - + + + \ No newline at end of file diff --git a/res/layout/file_details_fragment.xml b/res/layout/file_details_fragment.xml index 99c09bc5..16e7404d 100644 --- a/res/layout/file_details_fragment.xml +++ b/res/layout/file_details_fragment.xml @@ -28,89 +28,48 @@ android:layout_height="fill_parent" > - - - - - - - - + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" > - + android:layout_marginLeft="16dp" + android:layout_marginTop="4dp" + android:src="@drawable/file" /> + android:layout_marginLeft="4dp" + android:text="file.name" + android:textAppearance="?android:attr/textAppearanceLarge" /> + - + + android:layout_weight="1" + android:orientation="vertical" + android:paddingLeft="16dp" > @@ -119,8 +78,6 @@ android:id="@+id/fdSizeLabel" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_alignLeft="@+id/fdIcon" - android:layout_below="@+id/fdTypeLabel" android:layout_marginTop="12dp" android:text="@string/filedetails_size" android:textAppearance="?android:attr/textAppearanceMedium" /> @@ -129,8 +86,6 @@ android:id="@+id/fdCreatedLabel" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_alignLeft="@+id/fdIcon" - android:layout_below="@+id/fdSizeLabel" android:layout_marginTop="12dp" android:text="@string/filedetails_created" android:textAppearance="?android:attr/textAppearanceMedium" /> @@ -139,22 +94,74 @@ android:id="@+id/fdModifiedLabel" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_alignLeft="@+id/fdIcon" - android:layout_below="@+id/fdCreatedLabel" android:layout_marginTop="12dp" android:text="@string/filedetails_modified" android:textAppearance="?android:attr/textAppearanceMedium" /> + + + + + + + + + + + + + + + + + +