Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Nov 19, 2025. It is now read-only.
This repository was archived by the owner on Nov 19, 2025. It is now read-only.

SquareAndroid reorder xml tag #69

Copy link
Copy link
@zyallday

Description

@zyallday
Issue body actions

code style: SquareAndroid
When I reformat the xml, it change the tags order in xml. But the Square won't do this.

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical">

  <com.xxx.widget.ItemView
      android:id="@+id/first"
      android:layout_width="match_parent"
      android:layout_height="@dimen/dp_60" />

  <View
      android:id="@+id/divider1"
      android:layout_width="match_parent"
      android:layout_height="@dimen/dp_0_5"
      android:layout_marginStart="@dimen/dp_25"
      android:background="#eeeeee" />

  <com.xxx.widget.ItemView
      android:id="@+id/second"
      android:layout_width="match_parent"
      android:layout_height="@dimen/dp_60"
      android:visibility="gone" />

  <View
      android:id="@+id/divider2"
      android:layout_width="match_parent"
      android:layout_height="@dimen/dp_0_5"
      android:layout_marginStart="@dimen/dp_25"
      android:background="#eeeeee" />

  <com.xxx.widget.ItemView
      android:id="@+id/third"
      android:layout_width="match_parent"
      android:layout_height="@dimen/dp_60"
      android:visibility="gone" />

</LinearLayout>

After reformat :

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical">

  <View
      android:id="@+id/divider1"
      android:layout_width="match_parent"
      android:layout_height="@dimen/dp_0_5"
      android:layout_marginStart="@dimen/dp_25"
      android:background="#eeeeee" />

  <View
      android:id="@+id/divider2"
      android:layout_width="match_parent"
      android:layout_height="@dimen/dp_0_5"
      android:layout_marginStart="@dimen/dp_25"
      android:background="#eeeeee" />

  <com.xxx.widget.ItemView
      android:id="@+id/second"
      android:layout_width="match_parent"
      android:layout_height="@dimen/dp_60"
      android:visibility="gone" />

  <com.xxx.widget.ItemView
      android:id="@+id/first"
      android:layout_width="match_parent"
      android:layout_height="@dimen/dp_60" />

  <com.xxx.widget.ItemView
      android:id="@+id/third"
      android:layout_width="match_parent"
      android:layout_height="@dimen/dp_60"
      android:visibility="gone" />

</LinearLayout>
kalpeshp0310 and zhpanvip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.