See this Package by feature, not layer
<PRODUCT_NAME>Application.java- for Application class<NAME>Activity.java- for activity class<NAME>Adapter.java- for adapter class<NAME>Fragment.java- for fragment class<NAME>.java- for model class<NAME>Provider.java- for content provider class<NAME>Service.java- for service class<NAME>Receiver.java- for broadcast receiver class<NAME>Utils.java- for utility class<NAME>.java- for custom view class
Note: You should use more meaningful names than these short names unless you have two or more same kind of views in the same place.
aclock- AnalogClockactv- AutoCompleteTextViewbtn- Buttoncal- CalendarViewchb- CheckBoxchtv- CheckedTextViewchron- Chronometerdp- DatePickeredt- EditTextexplv- ExpandableListViewfl- FrameLayoutgl- GridLayoutgrv- GridViewhsv- HorizontalScrollViewimb- ImageButtonims- ImageSwitcherimv- ImageViewll- LinearLayoutlsv- ListViewctlr- MediaControllermactv- MultiAutoCompleteTextViewnp- NumberPickerpm- PopupMenupw- PopupWindowpgb- ProgressBarrb- RadioButtonrg- RadioGrouprtb- RatingBarrl- RelativeLayoutrv- RemoteViewsscv- ScrollViewschv- SearchViewskb- SeekBarsap- ShareActionProviderspace- Spacespn- Spinnerstv- StackViewsw- Switchtabh- TabHosttabc- TabHost.TabSpectl- TableLayouttr- TableRowtwg- TabWidgettclock- TextClocktsw- TextSwitchertxv- TextViewtp- TimePickertoast- Toasttgb- ToggleButtonvdv- VideoViewvf- ViewFlippervsw- ViewSwitcher
See this Android-Cheatsheet-For-Graphic-Designers#Naming Convention
<INTERPOLATOR_NAME>_interpolator.xml- for custom interpolator<ANIMATION_NAME>.xml- for custom animation
<ANIMATOR_NAME>.xml- for custom animator
selector_<COLOR_NAME>.xml- for color state list
bmp_<BITMAP_NAME>.xml- for bitmap filenp_<NINE_PATCH_NAME>.xml- for nine-patch XML filelayer_<LAYER_LIST_NAME>.xml- for layer listselector_<STATE_LIST_NAME>.xml- for state listanim_<DRAWABLE_ANIMATION_NAME>.xml- for drawable animationlevel_<LEVEL_LIST_NAME>.xml- for level listtrans_<TRANSITION_DRAWABLE_NAME>.xml- for transition drawableinset_<INSET_DRAWABLE_NAME>.xml- for inset drawableclip_<CLIP_DRAWABLE_NAME>.xml- for clip drawablescale_<SCALE_DRAWABLE_NAME>.xml- for scale drawableshape_<SHAPE_DRAWABLE_NAME>.xml- for shape drawable
activity_<ACTIVITY_NAME>.xml- for activitydialog_<DIALOG_NAME>.xml- for dialoglist_item_<LIST_NAME>.xml- for list item in ListViewgrid_item_<GRID_NAME>.xml- for grid item in GridViewfragment_<FRAGMENT_NAME>.xml- for fragmentlayout_<LAYOUT_NAME>.xml- for re-useable layoutmerge_<MERGE_NAME>.xml- for<merge>Tag onlywidget_<WIDGET_NAME>.xml- for custom viewappwidget_<APPWIDGET_NAME>.xml- for app widget
<MENU_NAME>.xml- for option menucontextual_<MENU_NAME>.xml- for contextual menupopup_<MENU_NAME>.xml- for popup menu
-
values/colors.xml
-
<color name="<THEME_NAME>_<COLOR_NAME>"><COLOR_VALUE></color>For example:
<color name=”holo_blue_dark”>#ff0099cc</color> <color name=”material_blue_500”>#5677fc</color> -
If the color is not in the theme:
<color name="<COLOR_NAME>"><COLOR_VALUE></color>
-
-
values/strings.xml
<string name="title_<TITLE_NAME>"><TITLE_VALUE></string>- for ActionBar title<string name="action_<ACTION_BUTTON_TEXT>"><TEXT_VALUE></string>- for ActionBar button text<string name="tab_<ACTION_TAB_TEXT>"><TEXT_VALUE></string>- for ActionBar.Tab text<string name="btn_<BUTTON_TEXT>"><TEXT_VALUE></string>- for button<string name="empty_<VIEW_NAME>"><EMPTY_VALUE></string>- for empty view<string name="hint_<EDITTEXT_NAME>"><HINT_VALUE></string>- for the hint of EditText/AutoCompleteTextView<string name="label_<TEXTVIEW_NAME>"><TEXT_VALUE></string>- for static TextView<string name="toast_<TOAST_NAME>"><TOAST_VALUE></string>- for toast<string name="dialog_title_<DIALOG_NAME>"><TITLE_VALUE></string>- for dialog<string name="dialog_msg_<DIALOG_NAME>"><MSG_VALUE></string>- for dialog<string name="dialog_action_<ACTION_NAME>"><ACTION_NAME></string>- for dialog button<string name="msg_<MESSAGE_NAME>"><MSG_VALUE></string>- for Log or some other stuff<string name="contextual_<MENU_ITEM_NAME>"><TEXT_VALUE></string>- for contextual menu item<string name="popup_<MENU_ITEM_NAME>"><TEXT_VALUE></string>- for popup menu item
-
values/string_arrays.xml
<string-array name="<ARRAY_NAME>_array"> -
values/plurals.xml
<plurals name="<PLURALS_NAME>">
appwidget_<APPWIDGET_NAME>- for app widget provider