插件安装方式
插件安装位置
ADB Idea
快捷键 Ctrl+Alt+shift+A
Android layout id converter
根据layout文件生成findViewById
ctrl+v 粘贴代码即可
private LinearLayout llBg;
private TextView tvTitle;
private EditText et1;
private EditText et2;
private EditText et3;
private EditText et4;
private TextView tvError;
private void assignViews() {
llBg = (LinearLayout) findViewById(R.id.llBg);
tvTitle = (TextView) findViewById(R.id.tvTitle);
et1 = (EditText) findViewById(R.id.et1);
et2 = (EditText) findViewById(R.id.et2);
et3 = (EditText) findViewById(R.id.et3);
et4 = (EditText) findViewById(R.id.et4);
tvError = (TextView) findViewById(R.id.tvError);
}