└── README.md /README.md: -------------------------------------------------------------------------------- 1 | ###1. Package Structure 2 | 3 | src 4 | * `com.client.app` - contain Application class only 5 | * `com.client.app.views` - contain all activities 6 | * `com.client.app.fragments` - contain all fragments 7 | * `com.client.app.webservice` - contain all web services 8 | * `com.client.app.adapters` - contain all adapters 9 | * `com.client.app.db` - contain all db related classes 10 | * `com.client.app.models` - contain all models 11 | * `com.client.app.utils` - contain utility/misc classes 12 | * `com.client.app.widgets` - contain extended/custom views 13 | * `com.client.app.services` - contain all services 14 | * `com.client.app.animation` - contain all animations 15 | 16 | ###2. Naming convention for Xml files 17 | 18 | * `activity_.xml` - for all activities 19 | * `dialog_.xml` - for all custom dialogs 20 | * `row_.xml` - for custom row for listview 21 | * `fragment_.xml` - for all fragments 22 | 23 | ###3. Naming convention for component/widget in xml files. 24 | 25 | * all component for x activity must be start with activity name 26 | * all component should have prefix or short name like btn for button 27 | * For example,name for login activity component should be like following. 28 | 29 | * `activity_login_btn_login` 30 | * `activity_login_et_username` 31 | * `activity_login_et_password` 32 | 33 | * Short name of major components 34 | 35 | * Button - `btn` 36 | * EditText - `et` 37 | * TextView - `tv` 38 | * Checkbox - `chk` 39 | * RadioButton - `rb` 40 | * ToggleButton - `tb` 41 | * Spinner - `spn` 42 | * Menu - `mnu` 43 | * ListView - `lv` 44 | * GalleryView - `gv` 45 | * LinearLayout -`ll` 46 | * RelativeLayout - `rl` 47 | --------------------------------------------------------------------------------