From 40c7d21abb27123f21114f15d813359cd646fb3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ng=C3=B4=20Ng=E1=BB=8Dc=20=C4=90=E1=BB=A9c=20Huy?= Date: Wed, 10 Feb 2021 19:50:45 +0700 Subject: [PATCH] Add note for XML convention --- CONTRIBUTING.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 CONTRIBUTING.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..e8db8ee --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,17 @@ +# Contribution Guidelines + +## Architecture + +TBD + +## Coding convention + +## Kotlin +## XML + +Please sort the attributes as follow: + +- ID of a View is always on top, unless the namespace is defined, in which case ID comes right after the namespace definition. +- Right after the ID is its content, if applicable (e.g. `android:text` for `TextView`, `android:src` for `ImageView`). +- Event listeners (e.g. `android:onClick`) are put at the end. +- All other attributes are sorted alphabetially.