Skip to content

Commit

Permalink
Force all layouts to be LTR
Browse files Browse the repository at this point in the history
Developing full support for RTL would require to adapt all
the ViewPagers/TabLayouts to work correctly. I'm currently
fixing all the layouts to LTR and we'll wait for ViewPager2
to provide full RTL support.

Fixes #117
  • Loading branch information
cortinico committed Sep 19, 2019
1 parent 199de68 commit 270cc88
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions library/src/main/res/layout/chucker_activity_error.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
android:id="@+id/main_content"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layoutDirection="ltr"
tools:context="com.chuckerteam.chucker.internal.ui.error.ErrorActivity">

<com.google.android.material.appbar.AppBarLayout
Expand Down
1 change: 1 addition & 0 deletions library/src/main/res/layout/chucker_activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layoutDirection="ltr"
android:orientation="vertical">

<com.google.android.material.appbar.AppBarLayout
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
android:id="@+id/main_content"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layoutDirection="ltr"
tools:context="com.chuckerteam.chucker.internal.ui.transaction.TransactionActivity">

<com.google.android.material.appbar.AppBarLayout
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layoutDirection="ltr"
android:layout_height="match_parent">

<androidx.recyclerview.widget.RecyclerView
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layoutDirection="ltr"
android:layout_height="match_parent">

<androidx.recyclerview.widget.RecyclerView
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbars="vertical"
android:layoutDirection="ltr"
tools:context="com.chuckerteam.chucker.internal.ui.transaction.TransactionOverviewFragment">

<TableLayout
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbars="vertical"
android:layoutDirection="ltr"
tools:context="com.chuckerteam.chucker.internal.ui.transaction.TransactionPayloadFragment">

<LinearLayout
Expand Down
1 change: 1 addition & 0 deletions library/src/main/res/layout/chucker_list_item_error.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
android:layout_height="wrap_content"
android:background="?android:attr/selectableItemBackground"
android:orientation="vertical"
android:layoutDirection="ltr"
android:padding="8dp">

<TextView
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?android:attr/selectableItemBackground"
android:layoutDirection="ltr"
android:padding="@dimen/chucker_base_grid">

<androidx.constraintlayout.widget.Guideline
Expand Down

0 comments on commit 270cc88

Please sign in to comment.