###1. Package Structure
src
com.client.app- contain Application class onlycom.client.app.views- contain all activitiescom.client.app.fragments- contain all fragmentscom.client.app.webservice- contain all web servicescom.client.app.adapters- contain all adapterscom.client.app.db- contain all db related classescom.client.app.models- contain all modelscom.client.app.utils- contain utility/misc classescom.client.app.widgets- contain extended/custom viewscom.client.app.services- contain all servicescom.client.app.animation- contain all animations
###2. Naming convention for Xml files
activity_<ACTIVITY NAME>.xml- for all activitiesdialog_<DIALOG NAME>.xml- for all custom dialogsrow_<LIST_NAME>.xml- for custom row for listviewfragment_<FRAGMENT_NAME>.xml- for all fragments
###3. Naming convention for component/widget in xml files.
-
all component for x activity must be start with 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_loginactivity_login_et_usernameactivity_login_et_password
-
Short name of major components
- Button -
btn - EditText -
et - TextView -
tv - Checkbox -
chk - RadioButton -
rb - ToggleButton -
tb - Spinner -
spn - Menu -
mnu - ListView -
lv - GalleryView -
gv - LinearLayout -
ll - RelativeLayout -
rl
- Button -