Browse Source

prevent overlapping of elements due to translations

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Andy Scherzinger 6 years ago
parent
commit
60fe6fd04a
1 changed files with 11 additions and 9 deletions
  1. 11 9
      src/main/res/layout/upload_list_header.xml

+ 11 - 9
src/main/res/layout/upload_list_header.xml

@@ -33,25 +33,27 @@
         style="@style/TextAppearance.AppCompat.Body2"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
+        android:layout_alignParentStart="true"
+        android:layout_alignParentLeft="true"
+        android:layout_toStartOf="@id/upload_list_action"
+        android:layout_toLeftOf="@id/upload_list_action"
         android:ellipsize="middle"
+        android:padding="@dimen/standard_half_padding"
         android:textColor="@color/color_accent"
-        android:layout_alignParentLeft="true"
-        android:layout_alignParentStart="true"
-        tools:text="Current (2)"
-        android:padding="@dimen/standard_half_padding"/>
+        tools:text="Current (2)" />
 
     <ImageView
         android:id="@+id/upload_list_action"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
-        android:paddingLeft="@dimen/standard_half_padding"
+        android:layout_alignParentEnd="true"
+        android:layout_alignParentRight="true"
+        android:contentDescription="@string/delete_entries"
         android:paddingStart="@dimen/standard_half_padding"
+        android:paddingLeft="@dimen/standard_half_padding"
+        android:paddingTop="@dimen/standard_half_padding"
         android:paddingEnd="@dimen/zero"
         android:paddingRight="@dimen/zero"
-        android:paddingTop="@dimen/standard_half_padding"
         android:paddingBottom="@dimen/standard_half_padding"
-        android:layout_alignParentRight="true"
-        android:layout_alignParentEnd="true"
-        android:contentDescription="@string/delete_entries"
         android:src="@drawable/nav_trashbin" />
 </RelativeLayout>