wannna know why xml files are in weird format for me? #82
Replies: 3 comments 3 replies
-
XML could have 2, 4, 8 spaces indentation, the reason we favor 2-space indentation is most commonly android layout xml files have too many nested elements, thus having many indentation spaces will produce text beyond readable screen width.
This is incomplete information, you need to provide steps to reproduce along with sample files |
Beta Was this translation helpful? Give feedback.
-
see here, left one is from apkeditor, and see how ugly it shows xml, that much spaces for each tag, not even workable with git stuff, as git detects and give error even on 2 spaces vs 4 spaces difference, on the right side, thats how a normal xml looks, 4 spaces indents with casual spaces in each tag, |
Beta Was this translation helpful? Give feedback.
-
@REAndroid i am able to use 4 spaces for all xml's except for values one, i know they are getting made from different serializer than normal xml's, am a bit weak in java, can you point out how i can add such 4 spaces indent for values/ folder xmls? would help alot, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
unpacking apks have weird xml format, there are some points i'd like to share, may be am new to this tool so common for all,
Beta Was this translation helpful? Give feedback.
All reactions