Android

android studio 插件

2015-09-23  本文已影响134人  cd2016

插件安装方式

Paste_Image.png

插件安装位置

Paste_Image.png

ADB Idea

Paste_Image.png

快捷键 Ctrl+Alt+shift+A

Paste_Image.png

Android layout id converter

根据layout文件生成findViewById

Paste_Image.png
Paste_Image.png
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);
}

上一篇 下一篇

猜你喜欢

热点阅读