Add note for XML convention

This commit is contained in:
Ngô Ngọc Đức Huy 2021-02-10 19:50:45 +07:00
parent 3958d2626b
commit 40c7d21abb
Signed by: huyngo
GPG Key ID: 904AF1C7CDF695C3
1 changed files with 17 additions and 0 deletions

17
CONTRIBUTING.md Normal file
View File

@ -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.