Skip to content
This repository was archived by the owner on Nov 19, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Android Studio 3.5 Upgrade XML
  • Loading branch information
ppav committed Sep 4, 2019
commit fa5f94033905fe387dbae1c3c7f303053cbfc5df
36 changes: 30 additions & 6 deletions configs/codestyles/SquareAndroid.xml
Original file line number Diff line number Diff line change
Expand Up @@ -295,28 +295,40 @@
<section>
<rule>
<match>
<NAME>class</NAME>
<AND>
<NAME>class</NAME>
<XML_ATTRIBUTE />
</AND>
</match>
</rule>
</section>
<section>
<rule>
<match>
<NAME>layout</NAME>
<AND>
<NAME>layout</NAME>
<XML_ATTRIBUTE />
</AND>
</match>
</rule>
</section>
<section>
<rule>
<match>
<NAME>xmlns:android</NAME>
<AND>
<NAME>xmlns:android</NAME>
<XML_ATTRIBUTE />
</AND>
</match>
</rule>
</section>
<section>
<rule>
<match>
<NAME>xmlns:.*</NAME>
<AND>
<NAME>xmlns:.*</NAME>
<XML_ATTRIBUTE />
</AND>
</match>
<order>BY_NAME</order>
</rule>
Expand All @@ -326,6 +338,7 @@
<match>
<AND>
<NAME>.*:id</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>
</AND>
</match>
Expand All @@ -346,6 +359,7 @@
<match>
<AND>
<NAME>.*:layout_width</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>
</AND>
</match>
Expand All @@ -356,6 +370,7 @@
<match>
<AND>
<NAME>.*:layout_height</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>
</AND>
</match>
Expand All @@ -366,6 +381,7 @@
<match>
<AND>
<NAME>.*:layout_.*</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>
</AND>
</match>
Expand All @@ -377,6 +393,7 @@
<match>
<AND>
<NAME>.*</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>
</AND>
</match>
Expand All @@ -388,6 +405,7 @@
<match>
<AND>
<NAME>app:layout_.*</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>http://schemas.android.com/apk/res-auto</XML_NAMESPACE>
</AND>
</match>
Expand All @@ -397,15 +415,21 @@
<section>
<rule>
<match>
<NAME>.*(?&lt;!style)$</NAME>
<AND>
<NAME>.*(?&lt;!style)$</NAME>
<XML_ATTRIBUTE />
</AND>
</match>
<order>BY_NAME</order>
</rule>
</section>
<section>
<rule>
<match>
<NAME>style</NAME>
<AND>
<NAME>style</NAME>
<XML_ATTRIBUTE />
</AND>
</match>
</rule>
</section>
Expand Down