本文共 615 字,大约阅读时间需要 2 分钟。
常用缩写
注意:
程序中使用单词缩写原则:尽量不要用缩写,除非该缩写是约定俗成的。
资源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
转载地址:http://ziwin.baihongyu.com/