Skip to content

Commit

Permalink
clean up format xml
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanbataire committed Oct 14, 2024
1 parent 99b849c commit 983d19e
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 14 deletions.
7 changes: 5 additions & 2 deletions src/main/res/layout/connection_error.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
Expand Down Expand Up @@ -48,7 +49,8 @@
style="@style/borderlessButton"
android:onClick="onClickMoreInfo"
android:text="@string/btnMoreInfo"
android:textAllCaps="true" />
android:textAllCaps="true"
tools:ignore="UsingOnClickInXml" />

<View
android:layout_width="0dp"
Expand All @@ -60,7 +62,8 @@
style="@style/borderlessButton"
android:onClick="onClickRetry"
android:text="@string/btnRetry"
android:textAllCaps="true" />
android:textAllCaps="true"
tools:ignore="UsingOnClickInXml" />
</LinearLayout>
</RelativeLayout>

Expand Down
4 changes: 2 additions & 2 deletions src/main/res/layout/custom_server_form.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
android:layout_alignParentBottom="true"
android:onClick="cancelSettingsEdit"
android:text="@string/btnCancel"
tools:ignore="OnClick" />
tools:ignore="OnClick,UsingOnClickInXml" />
<!-- OnClick is ignored because lint generates error
incorrectly. Test with future build tool versions
to see if this exception can be removed -->
Expand All @@ -32,5 +32,5 @@
android:layout_alignParentBottom="true"
android:onClick="verifyAndSave"
android:text="@string/btnSave"
tools:ignore="OnClick" />
tools:ignore="OnClick,UsingOnClickInXml" />
</RelativeLayout>
4 changes: 2 additions & 2 deletions src/main/res/layout/free_space_warning.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
style="@style/standardButton"
android:text="@string/btnQuit"
android:onClick="evtQuit"
tools:ignore="OnClick"
tools:ignore="OnClick,UsingOnClickInXml"
android:layout_toStartOf="@+id/btnFreeSpaceContinue"
android:layout_alignParentBottom="true"/>
<!-- OnClick is ignored because lint generates error
Expand All @@ -47,7 +47,7 @@
style="@style/standardButton"
android:text="@string/btnContinue"
android:onClick="evtContinue"
tools:ignore="OnClick"
tools:ignore="OnClick,UsingOnClickInXml"
android:layout_alignParentEnd="true"
android:layout_alignParentBottom="true"/>
</RelativeLayout>
Expand Down
4 changes: 2 additions & 2 deletions src/main/res/layout/request_app_domain_association.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
style="@style/borderlessButton"
android:onClick="onClickNegative"
android:text="@string/domainAppAssociationRequestDenyButton"
tools:ignore="OnClick"
tools:ignore="OnClick,UsingOnClickInXml"
android:layout_marginTop="10dp"/>

<View
Expand All @@ -61,7 +61,7 @@
android:onClick="onClickOk"
android:text="@string/domainAppAssociationRequestOkButton"
android:textColor="#ffffff"
tools:ignore="OnClick" />
tools:ignore="OnClick,UsingOnClickInXml" />

</LinearLayout>

Expand Down
4 changes: 2 additions & 2 deletions src/main/res/layout/request_location_permission.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
style="@style/borderlessButton"
android:onClick="onClickNegative"
android:text="@string/locRequestDenyButton"
tools:ignore="OnClick" />
tools:ignore="OnClick,UsingOnClickInXml" />

<View
android:layout_width="0dp"
Expand All @@ -67,7 +67,7 @@
style="@style/borderlessButton"
android:onClick="onClickOk"
android:text="@string/locRequestOkButton"
tools:ignore="OnClick" />
tools:ignore="OnClick,UsingOnClickInXml" />
</LinearLayout>

</RelativeLayout>
4 changes: 2 additions & 2 deletions src/main/res/layout/request_send_sms_permission.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
style="@style/borderlessButton"
android:onClick="onClickDeny"
android:text="@string/sendSmsRequestDenyButton"
tools:ignore="OnClick" />
tools:ignore="OnClick,UsingOnClickInXml" />

<View
android:layout_width="0dp"
Expand All @@ -67,7 +67,7 @@
style="@style/borderlessButton"
android:onClick="onClickAllow"
android:text="@string/sendSmsRequestAllowButton"
tools:ignore="OnClick" />
tools:ignore="OnClick,UsingOnClickInXml" />
</LinearLayout>

</RelativeLayout>
4 changes: 2 additions & 2 deletions src/main/res/layout/request_storage_permission.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
style="@style/borderlessButton"
android:onClick="onClickDeny"
android:text="@string/storageRequestDenyButton"
tools:ignore="OnClick" />
tools:ignore="OnClick,UsingOnClickInXml" />

<View
android:layout_width="0dp"
Expand All @@ -67,7 +67,7 @@
style="@style/borderlessButton"
android:onClick="onClickAllow"
android:text="@string/storageRequestAllowButton"
tools:ignore="OnClick" />
tools:ignore="OnClick,UsingOnClickInXml" />
</LinearLayout>

</RelativeLayout>

0 comments on commit 983d19e

Please sign in to comment.