常用控件的使用方法

UI组件

Button按钮

第一步 初始化(init)
第二部 安装监听器(Listener)
第三部 重写监听器方法(new OnclickListener(){})

意图Intent

分为显示和隐式
Intent intent=new Intent(Media.ACTION.CAMERA.CAPTURE)打开摄像头
Intent intent1=new Intent(MainActivity.this,SecontActivity.class);

原文地址:https://www.cnblogs.com/gzy918/p/14544345.html