fix all RtL lint errors in swap layouts
This commit is contained in:
parent
89f5127f6d
commit
9dc9a23a41
@ -40,6 +40,8 @@
|
|||||||
|
|
||||||
<issue id="PluralsCandidate" severity="error"/>
|
<issue id="PluralsCandidate" severity="error"/>
|
||||||
<issue id="HardcodedText" severity="error"/>
|
<issue id="HardcodedText" severity="error"/>
|
||||||
|
<issue id="RtlCompat" severity="error"/>
|
||||||
|
<issue id="RtlEnabled" severity="error"/>
|
||||||
|
|
||||||
<!-- both the correct and deprecated locales need to be present for
|
<!-- both the correct and deprecated locales need to be present for
|
||||||
them to be recognized on all devices -->
|
them to be recognized on all devices -->
|
||||||
|
@ -54,7 +54,6 @@
|
|||||||
android:layout_marginTop="45dp">
|
android:layout_marginTop="45dp">
|
||||||
<!-- 80px * 0.56 = 45dp -->
|
<!-- 80px * 0.56 = 45dp -->
|
||||||
|
|
||||||
<!-- TODO: Remove associated style files style="@style/SwapTheme.Wizard.ReceiveSwap.Deny"-->
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/confirm_receive_yes"
|
android:id="@+id/confirm_receive_yes"
|
||||||
android:text="@string/no"
|
android:text="@string/no"
|
||||||
@ -65,7 +64,6 @@
|
|||||||
android:layout_marginRight="25dp"
|
android:layout_marginRight="25dp"
|
||||||
tools:ignore="UnusedAttribute"/>
|
tools:ignore="UnusedAttribute"/>
|
||||||
|
|
||||||
<!-- TODO: Remove associated style files style="@style/SwapTheme.Wizard.ReceiveSwap.Confirm" -->
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/confirm_receive_no"
|
android:id="@+id/confirm_receive_no"
|
||||||
android:text="@string/yes"
|
android:text="@string/yes"
|
||||||
|
@ -1,9 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
<!-- TODO: Add paddingStart in places where there is only paddingLeft. However Android Studio lint
|
|
||||||
gives an error, which is discussed here:
|
|
||||||
http://stackoverflow.com/questions/27449776/conflicting-lint-messages-regarding-paddingstart-usage?lq=1
|
|
||||||
-->
|
|
||||||
<org.fdroid.fdroid.views.swap.StartSwapView
|
<org.fdroid.fdroid.views.swap.StartSwapView
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
@ -31,6 +26,7 @@
|
|||||||
android:layout_width="24dp"
|
android:layout_width="24dp"
|
||||||
android:layout_height="24dp"
|
android:layout_height="24dp"
|
||||||
android:tint="@color/swap_grey_icon"
|
android:tint="@color/swap_grey_icon"
|
||||||
|
android:contentDescription="@string/use_bluetooth"
|
||||||
android:src="@drawable/ic_bluetooth_white"/>
|
android:src="@drawable/ic_bluetooth_white"/>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
@ -79,6 +75,7 @@
|
|||||||
android:layout_width="24dp"
|
android:layout_width="24dp"
|
||||||
android:layout_height="24dp"
|
android:layout_height="24dp"
|
||||||
android:tint="@color/swap_grey_icon"
|
android:tint="@color/swap_grey_icon"
|
||||||
|
android:contentDescription="@string/wifi"
|
||||||
android:src="@drawable/ic_network_wifi_white"/>
|
android:src="@drawable/ic_network_wifi_white"/>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
@ -168,6 +165,7 @@
|
|||||||
android:drawablePadding="10dp"
|
android:drawablePadding="10dp"
|
||||||
android:paddingLeft="25dp"
|
android:paddingLeft="25dp"
|
||||||
android:paddingRight="25dp"
|
android:paddingRight="25dp"
|
||||||
|
android:paddingStart="25dp"
|
||||||
android:paddingEnd="25dp"
|
android:paddingEnd="25dp"
|
||||||
android:background="@android:color/transparent"/>
|
android:background="@android:color/transparent"/>
|
||||||
|
|
||||||
@ -181,6 +179,7 @@
|
|||||||
android:drawablePadding="10dp"
|
android:drawablePadding="10dp"
|
||||||
android:paddingLeft="25dp"
|
android:paddingLeft="25dp"
|
||||||
android:paddingRight="25dp"
|
android:paddingRight="25dp"
|
||||||
|
android:paddingStart="25dp"
|
||||||
android:paddingEnd="25dp"
|
android:paddingEnd="25dp"
|
||||||
android:background="@android:color/transparent"/>
|
android:background="@android:color/transparent"/>
|
||||||
|
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
@ -11,6 +10,8 @@
|
|||||||
android:paddingBottom="5dp"
|
android:paddingBottom="5dp"
|
||||||
android:paddingLeft="10dp"
|
android:paddingLeft="10dp"
|
||||||
android:paddingRight="4dp"
|
android:paddingRight="4dp"
|
||||||
|
android:paddingStart="10dp"
|
||||||
|
android:paddingEnd="4dp"
|
||||||
android:background="?attr/selectableItemBackground">
|
android:background="?attr/selectableItemBackground">
|
||||||
|
|
||||||
<LinearLayout android:id="@+id/basic_layout"
|
<LinearLayout android:id="@+id/basic_layout"
|
||||||
|
@ -76,7 +76,9 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:paddingLeft="8dp"
|
android:paddingLeft="8dp"
|
||||||
|
android:paddingRight="8dp"
|
||||||
android:paddingStart="8dp"
|
android:paddingStart="8dp"
|
||||||
|
android:paddingEnd="8dp"
|
||||||
android:src="@drawable/ic_cancel"
|
android:src="@drawable/ic_cancel"
|
||||||
android:contentDescription="@string/cancel"
|
android:contentDescription="@string/cancel"
|
||||||
android:background="@android:color/transparent"
|
android:background="@android:color/transparent"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user