parth-sh / Expenses

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Naming conventions

https://stackoverflow.com/questions/12870537/android-naming-convention


Android Guidelines are a good example of standard naming conventions:
https://github.com/ribot/android-guidelines/blob/master/project_and_code_guidelines.md

Naming convention for XML files:

activity_<ACTIVITY NAME>.xml - for all activities
dialog_<DIALOG NAME>.xml - for all custom dialogs
row_<LIST_NAME>.xml - for custom row for listview
fragment_<FRAGMENT_NAME>.xml - for all fragments

All components for X activity must start with the activity name all component should have prefix or short name like btn for Button For example,name for login activity component should be like following.

activity_login_btn_login
activity_login_et_username
activity_login_et_password

Short name of major components:

Button - btn
EditText - et
TextView - tv
ProgressBar - pb
Checkbox - chk
RadioButton - rb
ToggleButton - tb
Spinner - spn
Menu - mnu
ListView - lv
GalleryView - gv
LinearLayout -ll
RelativeLayout - rl

Dependencies

https://developer.android.com/jetpack/androidx/releases/room

References

Room database

https://developer.android.com/codelabs/android-room-with-a-view?hl=en#0

DateConverter for date column in room db

https://youtu.be/hjv4xRgN24M

https://stackoverflow.com/questions/50313525/room-using-date-field

Date formatting

https://stackoverflow.com/questions/21349475/calendar-getinstancetimezone-gettimezoneutc-is-not-returning-utc-time

https://stackoverflow.com/questions/18734452/display-current-time-in-12-hour-format-with-am-pm/18734531

Multiple View Recycler view

https://developer.android.com/guide/topics/ui/layout/recyclerview#java

https://stackoverflow.com/questions/26245139/how-to-create-recyclerview-with-multiple-view-types

About


Languages

Language:Java 100.0%