Naming Convention For Android Development
Naming Convention For Android Development
Package Structure
See this Package by feature, not layer
aclock - AnalogClock
actv - AutoCompleteTextView
btn - Button
cal - CalendarView
chb - CheckBox
chtv - CheckedTextView
chron - Chronometer
dp - DatePicker
edt - EditText
explv - ExpandableListView
fl - FrameLayout
gl - GridLayout
grv - GridView
hsv - HorizontalScrollView
imb - ImageButton
ims - ImageSwitcher
imv - ImageView
ll - LinearLayout
lsv - ListView
ctlr - MediaController
mactv - MultiAutoCompleteTextView
np - NumberPicker
pm - PopupMenu
pw - PopupWindow
pgb - ProgressBar
rb - RadioButton
rg - RadioGroup
rtb - RatingBar
rl - RelativeLayout
rv - RemoteViews
scv - ScrollView
schv - SearchView
skb - SeekBar
sap - ShareActionProvider
space - Space
spn - Spinner
stv - StackView
sw - Switch
tabh - TabHost
tabc - TabHost.TabSpec
tl - TableLayout
tr - TableRow
twg - TabWidget
tclock - TextClock
tsw - TextSwitcher
txv - TextView
tp - TimePicker
toast - Toast
tgb - ToggleButton
vdv - VideoView
vf - ViewFlipper
vsw - ViewSwitcher
<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>
values/strings.xml
values/plurals.xml
<plurals name="<PLURALS_NAME>">
Fuente:
https://github.com/TreyCai/AndroidNamingConvention