android studio 插件

插件安装方式

android studio 插件_第1张图片
Paste_Image.png

插件安装位置

android studio 插件_第2张图片
Paste_Image.png

ADB Idea

android studio 插件_第3张图片
Paste_Image.png

快捷键 Ctrl+Alt+shift+A

android studio 插件_第4张图片
Paste_Image.png

Android layout id converter

根据layout文件生成findViewById

android studio 插件_第5张图片
Paste_Image.png

android studio 插件_第6张图片
Paste_Image.png

android studio 插件_第7张图片
Paste_Image.png

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);
}

你可能感兴趣的:(android studio 插件)