Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d0d367d2 authored by Martin Brabham's avatar Martin Brabham Committed by Matt Garnes
Browse files

Support RTL layouts everywhere.

- Fix custom title text clipping.
- Fix breadcrumbs
- Remove FSO Dialog permission spinner width adjustment that did not
  function on RTL.
- Fix history and bookmarks items to align properly.
- Update layouts to function with RTL

Change-Id: I3cd4032887371509ec2847bae6f889558664a356
parent 37e947a3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -32,8 +32,8 @@
    <CheckBox android:id="@+id/associations_remember"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginLeft="@dimen/extra_margin"
        android:layout_marginRight="@dimen/extra_margin"
        android:layout_marginStart="@dimen/extra_margin"
        android:layout_marginEnd="@dimen/extra_margin"
        android:layout_marginBottom="@dimen/extra_margin"
        android:textAppearance="@style/secondary_text_appearance"
        android:text="@string/associations_dialog_remember"
+3 −1
Original line number Diff line number Diff line
@@ -27,7 +27,7 @@
        android:id="@+id/bookmarks_item_icon"
        android:layout_width="48dp"
        android:layout_height="match_parent"
        android:layout_marginRight="2dp"
        android:layout_marginEnd="2dp"
        android:contentDescription="@null"
        android:padding="8dp"
        android:src="@null" />
@@ -43,6 +43,7 @@
            android:id="@+id/bookmarks_item_name"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:textAlignment="viewStart"
            android:singleLine="true"
            android:textAppearance="@style/primary_text_appearance" />

@@ -50,6 +51,7 @@
            android:id="@+id/bookmarks_item_path"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:textAlignment="viewStart"
            android:singleLine="true"
            android:textAppearance="@style/secondary_text_appearance" />
    </LinearLayout>
+10 −10
Original line number Diff line number Diff line
@@ -34,8 +34,8 @@
    android:layout_width="wrap_content"
    android:layout_height="match_parent"
    android:layout_alignBottom="@id/ab_filesystem_info"
    android:layout_alignLeft="@id/ab_filesystem_info"
    android:layout_alignRight="@id/ab_filesystem_info"
    android:layout_alignStart="@id/ab_filesystem_info"
    android:layout_alignEnd="@id/ab_filesystem_info"
    android:layout_alignTop="@id/ab_filesystem_info"
    android:layout_centerHorizontal="true"
    android:layout_centerVertical="true"
@@ -49,7 +49,7 @@
    android:id="@+id/breadcrumb_scrollview"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_toRightOf="@id/ab_filesystem_info"
    android:layout_toEndOf="@id/ab_filesystem_info"
    android:scrollbars="none" >

    <LinearLayout
@@ -57,8 +57,8 @@
      android:layout_width="wrap_content"
      android:layout_height="match_parent"
      android:orientation="horizontal"
      android:paddingLeft="@dimen/small_margin"
      android:paddingRight="@dimen/small_margin" />
      android:paddingStart="@dimen/small_margin"
      android:paddingEnd="@dimen/small_margin" />
  </HorizontalScrollView>

  <ProgressBar
@@ -66,12 +66,12 @@
    style="?android:attr/progressBarStyleHorizontal"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignLeft="@id/breadcrumb_scrollview"
    android:layout_alignStart="@id/breadcrumb_scrollview"
    android:layout_alignParentBottom="true"
    android:layout_alignRight="@id/breadcrumb_scrollview"
    android:layout_alignEnd="@id/breadcrumb_scrollview"
    android:layout_marginBottom="@dimen/min_margin"
    android:layout_marginLeft="@dimen/default_margin"
    android:layout_marginRight="@dimen/default_margin"
    android:layout_marginStart="@dimen/default_margin"
    android:layout_marginEnd="@dimen/default_margin"
    android:progress="@integer/default_progress_value"
    android:visibility="invisible" />

+24 −24
Original line number Diff line number Diff line
@@ -24,10 +24,10 @@
    android:id="@+id/checksum_filename_label"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_marginLeft="@dimen/extra_large_margin"
    android:layout_marginRight="@dimen/extra_large_margin"
    android:layout_marginStart="@dimen/extra_large_margin"
    android:layout_marginEnd="@dimen/extra_large_margin"
    android:layout_marginTop="@dimen/extra_large_margin"
    android:gravity="left|center_vertical"
    android:gravity="start|center_vertical"
    android:text="@string/compute_checksum_filename_label"
    android:textAppearance="@style/primary_text_appearance" />

@@ -35,34 +35,34 @@
    android:id="@+id/checksum_filename"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_marginLeft="@dimen/extra_large_margin"
    android:layout_marginRight="@dimen/extra_large_margin"
    android:gravity="left|center_vertical"
    android:layout_marginStart="@dimen/extra_large_margin"
    android:layout_marginEnd="@dimen/extra_large_margin"
    android:gravity="start|center_vertical"
    android:textAppearance="@style/secondary_text_appearance" />

  <TextView
    android:id="@+id/checksum_md5_label"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_marginLeft="@dimen/extra_large_margin"
    android:layout_marginRight="@dimen/extra_large_margin"
    android:layout_marginStart="@dimen/extra_large_margin"
    android:layout_marginEnd="@dimen/extra_large_margin"
    android:layout_marginTop="@dimen/extra_large_margin"
    android:gravity="left|center_vertical"
    android:gravity="start|center_vertical"
    android:text="@string/compute_checksum_md5_label"
    android:textAppearance="@style/primary_text_appearance" />

  <RelativeLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginLeft="@dimen/extra_large_margin"
    android:layout_marginRight="@dimen/extra_large_margin">
    android:layout_marginStart="@dimen/extra_large_margin"
    android:layout_marginEnd="@dimen/extra_large_margin">

    <com.cyanogenmod.filemanager.ui.widgets.ButtonItem
      android:id="@+id/bt_md5_clipboard"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentTop="true"
      android:layout_alignParentRight="true"
      android:layout_alignParentEnd="true"
      android:contentDescription="@string/copy_text_cd" />

    <EditText
@@ -70,16 +70,16 @@
      android:layout_width="match_parent"
      android:layout_height="64dp"
      android:singleLine="false"
      android:gravity="top|left"
      android:gravity="top|start"
      android:cursorVisible="true"
      android:background="@color/console_bg"
      android:imeOptions="actionNone|flagNoFullscreen"
      android:inputType="textMultiLine|textImeMultiLine|textNoSuggestions"
      android:focusable="false"
      android:layout_toLeftOf="@id/bt_md5_clipboard"
      android:layout_toStartOf="@id/bt_md5_clipboard"
      android:layout_alignTop="@id/bt_md5_clipboard"
      android:layout_alignBottom="@id/bt_md5_clipboard"
      android:layout_marginRight="@dimen/default_margin"
      android:layout_marginEnd="@dimen/default_margin"
      android:text="@string/compute_checksum_computing_checksum_msg"
      android:textAppearance="@style/console_text_appearance" />
  </RelativeLayout>
@@ -88,18 +88,18 @@
    android:id="@+id/checksum_sha1_label"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_marginLeft="@dimen/extra_large_margin"
    android:layout_marginRight="@dimen/extra_large_margin"
    android:layout_marginStart="@dimen/extra_large_margin"
    android:layout_marginEnd="@dimen/extra_large_margin"
    android:layout_marginTop="@dimen/extra_large_margin"
    android:gravity="left|center_vertical"
    android:gravity="start|center_vertical"
    android:text="@string/compute_checksum_sha1_label"
    android:textAppearance="@style/primary_text_appearance" />

  <RelativeLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginLeft="@dimen/extra_large_margin"
    android:layout_marginRight="@dimen/extra_large_margin"
    android:layout_marginStart="@dimen/extra_large_margin"
    android:layout_marginEnd="@dimen/extra_large_margin"
    android:layout_marginBottom="@dimen/extra_large_margin">

    <com.cyanogenmod.filemanager.ui.widgets.ButtonItem
@@ -107,7 +107,7 @@
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentTop="true"
      android:layout_alignParentRight="true"
      android:layout_alignParentEnd="true"
      android:contentDescription="@string/copy_text_cd" />

    <EditText
@@ -115,16 +115,16 @@
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:singleLine="false"
      android:gravity="top|left"
      android:gravity="top|start"
      android:cursorVisible="true"
      android:background="@color/console_bg"
      android:imeOptions="actionNone|flagNoFullscreen"
      android:inputType="textMultiLine|textImeMultiLine|textNoSuggestions"
      android:focusable="false"
      android:layout_toLeftOf="@id/bt_sha1_clipboard"
      android:layout_toStartOf="@id/bt_sha1_clipboard"
      android:layout_alignTop="@id/bt_sha1_clipboard"
      android:layout_alignBottom="@id/bt_sha1_clipboard"
      android:layout_marginRight="@dimen/default_margin"
      android:layout_marginEnd="@dimen/default_margin"
      android:text="@string/compute_checksum_computing_checksum_msg"
      android:textAppearance="@style/console_text_appearance" />
  </RelativeLayout>
+1 −1
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_margin="@dimen/extra_large_margin"
    android:gravity="left|center_vertical"
    android:gravity="start|center_vertical"
    android:textAppearance="@style/primary_text_appearance"
    android:textStyle="normal" />

Loading