Skip to content

Commit cddd8a5

Browse files
committed
Merge pull request square#22 from ravikumar-n/master
Added XML arrangement for SquareAndroid style
2 parents 7c21001 + 81428dd commit cddd8a5

File tree

1 file changed

+89
-0
lines changed

1 file changed

+89
-0
lines changed

configs/codestyles/SquareAndroid.xml

+89
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@
6969
<option name="PARAMETER_ANNOTATION_WRAP" value="1" />
7070
<option name="VARIABLE_ANNOTATION_WRAP" value="1" />
7171
<option name="ENUM_CONSTANTS_WRAP" value="1" />
72+
<AndroidXmlCodeStyleSettings>
73+
<option name="USE_CUSTOM_SETTINGS" value="true" />
74+
</AndroidXmlCodeStyleSettings>
7275
<JavaCodeStyleSettings>
7376
<option name="CLASS_NAMES_IN_JAVADOC" value="3" />
7477
</JavaCodeStyleSettings>
@@ -242,5 +245,91 @@
242245
<option name="CONTINUATION_INDENT_SIZE" value="4" />
243246
<option name="TAB_SIZE" value="2" />
244247
</indentOptions>
248+
<arrangement>
249+
<rules>
250+
<section>
251+
<rule>
252+
<match>
253+
<NAME>xmlns:android</NAME>
254+
</match>
255+
</rule>
256+
</section>
257+
<section>
258+
<rule>
259+
<match>
260+
<NAME>xmlns:.*</NAME>
261+
</match>
262+
<order>BY_NAME</order>
263+
</rule>
264+
</section>
265+
<section>
266+
<rule>
267+
<match>
268+
<AND>
269+
<NAME>.*:id</NAME>
270+
<XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>
271+
</AND>
272+
</match>
273+
</rule>
274+
</section>
275+
<section>
276+
<rule>
277+
<match>
278+
<AND>
279+
<NAME>.*:layout_width</NAME>
280+
<XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>
281+
</AND>
282+
</match>
283+
</rule>
284+
</section>
285+
<section>
286+
<rule>
287+
<match>
288+
<AND>
289+
<NAME>.*:layout_height</NAME>
290+
<XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>
291+
</AND>
292+
</match>
293+
</rule>
294+
</section>
295+
<section>
296+
<rule>
297+
<match>
298+
<AND>
299+
<NAME>.*:layout_.*</NAME>
300+
<XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>
301+
</AND>
302+
</match>
303+
<order>BY_NAME</order>
304+
</rule>
305+
</section>
306+
<section>
307+
<rule>
308+
<match>
309+
<AND>
310+
<NAME>.*</NAME>
311+
<XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>
312+
</AND>
313+
</match>
314+
<order>BY_NAME</order>
315+
</rule>
316+
</section>
317+
<section>
318+
<rule>
319+
<match>
320+
<NAME>.*(?&lt;!style)$</NAME>
321+
</match>
322+
<order>BY_NAME</order>
323+
</rule>
324+
</section>
325+
<section>
326+
<rule>
327+
<match>
328+
<NAME>style</NAME>
329+
</match>
330+
</rule>
331+
</section>
332+
</rules>
333+
</arrangement>
245334
</codeStyleSettings>
246335
</code_scheme>

0 commit comments

Comments
 (0)