https://kotlinlang.org logo
#android
Title
# android
b

Byron Woodfork

06/18/2019, 3:46 PM
Anyone have any links/resources for Android XML style guides?
g

gsala

06/18/2019, 3:49 PM
No. But you can check in Android Studio,
Editor -> Code Style -> XML
. do
setFrom... -> Predefined Style -> Android
and review what that set the settings to
j

Jzach

06/18/2019, 3:51 PM
g

gildor

06/18/2019, 4:31 PM
this repository is style guide for own Google projects, not for recommended or official for Android, so I would use it for own project only if you think it's good, not because Google use it for own projects
👆 2
(yes Im looking onto you mHungarianNotation)
j

Jzach

06/18/2019, 4:47 PM
Yeah for Kotlin Style I use: https://developer.android.com/kotlin/style-guide for the most part, but they don’t list recommendations for XML that I can find there. So it’s at least a starting point.
l

Lou Morda

06/18/2019, 5:08 PM
I think we are not supposed to be looking at XML as much anymore with the new UI editor and constraintlayouts... however I am still always editing XML because after 8 years of doing that, it's a habit I just will never break. 🙂
2 Views