常用缩写
注意:
程序中使用单词缩写原则:尽量不要用缩写,除非该缩写是约定俗成的。
资源ID命名缩写
Button
btn
LayoutView
lv
RelativeView
rv
TextView
tv
ImageButton
imgBtn
ImageView
iv
CheckBox
chk
RadioButton
rdoBtn
EditText
edtTxt
ProgressBar
proBar
View
vi
ListView
lVi
ScollView
sclVi
Dialog
dlg
资源文件命名缩写
icon
ic
color
cl
divider
di
selector
sl
background
bg
image
img
library
lib
title
titl
代码命名缩写
delete
del
infomation
info
length
len
initial
init
password
pwd
string
str
message
msg
position
pos
window
win
Address
addr
bitmap
bmp
click
clk
debug
dbg
divide
div
information
info
instance
inst
insert
ins
message
msg
参考:https://www.jianshu.com/p/8c1795d07b6f