常用控件的使用方法

UI组件

Button按钮

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

意图Intent

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

posted @ 2021-03-16 16:33  这就是昵称918  阅读(63)  评论(0编辑  收藏  举报