- 博客(0)
- 资源 (2)
空空如也
安卓总结的文档
安卓基本语句有public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
}
//1实力化
private void m1() {
etUserName=(EditText) this.findViewById(R.id.etUserName);
etPassword=(EditText) this.findViewById(R.id.etPassword);
btnLogin=(Button) this.findViewById(R.id.btnLogin);
btnReset=(Button) this.findViewById(R.id.btnReset);
myIntent=new Intent(getApplicationContext(), FrmMain.class);
}
//2监听器
2014-10-18
安卓文档的文件
安卓资源资料:android的创建,第一个android程序
1重点:四层架构
2.按钮的单机事件:
1:匿名类:
实例化接口OnClickListener,产生了一个匿名的内部方法。
2014-06-18
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人