Fix layout: Missing label, fix for smaller screens
authorLennart Rosam <lennart@familie-rosam.de>
Tue, 22 May 2012 16:15:56 +0000 (18:15 +0200)
committerLennart Rosam <lennart@familie-rosam.de>
Tue, 22 May 2012 16:15:56 +0000 (18:15 +0200)
res/layout/file_details_fragment.xml

index c011e67..76065e3 100644 (file)
@@ -63,6 +63,8 @@
                     android:id="@+id/fdLabelContainer"
                     android:layout_width="wrap_content"
                     android:layout_height="wrap_content"
+                    android:layout_alignParentLeft="true"
+                    android:layout_alignParentTop="true"
                     android:layout_marginLeft="16dp" >
 
                     <TextView
                         android:layout_marginTop="12dp"
                         android:text="@string/filedetails_created"
                         android:textAppearance="?android:attr/textAppearanceMedium" />
+                    
+                    <TextView
+                        android:id="@+id/fdModifiedLabel"
+                        android:layout_width="wrap_content"
+                        android:layout_height="wrap_content"
+                        android:layout_below="@+id/fdCreatedLabel"
+                        android:layout_marginTop="12dp"
+                        android:text="@string/filedetails_modified"
+                        android:textAppearance="?android:attr/textAppearanceMedium" />
                 </RelativeLayout>
 
                 <RelativeLayout
                     android:id="@+id/fdValueContainer"
                     android:layout_width="wrap_content"
                     android:layout_height="wrap_content"
-                    android:layout_centerHorizontal="true"
-                    android:layout_marginLeft="4dp" >
+                    android:layout_alignParentTop="true"
+                    android:layout_marginLeft="12dp"
+                    android:layout_toRightOf="@+id/fdLabelContainer" >
 
                     <TextView
                         android:id="@+id/fdType"
                         android:text="2012/05/19 02:56 PM"
                         android:textAppearance="?android:attr/textAppearanceMedium" />
                 </RelativeLayout>
+
             </RelativeLayout>
 
             <RelativeLayout