Skip to content

Instantly share code, notes, and snippets.

@kingargyle
Created May 16, 2020 23:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kingargyle/29ee680e994f5e56e80b3076a0387180 to your computer and use it in GitHub Desktop.
Save kingargyle/29ee680e994f5e56e80b3076a0387180 to your computer and use it in GitHub Desktop.
Configure XML formatting for Android Layout files
subprojects {
apply plugin: "com.diffplug.gradle.spotless"
spotless {
format 'xml', {
target '**/layout*/*.xml'
indentWithSpaces(2)
eclipseWtp('xml').configFile rootProject.file('spotless.xml.prefs')
}
}
}
alignEndBracket=true
eclipse.preferences.version=1
indentationChar=space
indentationSize=2
lineWidth=120
splitMultiAttrs=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment