摘要: Activity的理解: 1).活动:四大应用组件之一 2).作用:提供能让用户操作并与之交互界面 3).组件的特点:它的类必须实现特定接口或继承 需要在配置文件中配置齐全类名 它的对象不是同new来创建的,而是系统自动创建的 它的对象具有一定的生命周期, 它的类中有对应的生命周期回调方法 4).那 阅读全文
posted @ 2018-05-07 20:43 8026 阅读(423) 评论(0) 推荐(0)
摘要: //主界面public class MainActivity extends Activity { //成员的全局变量Button b1; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(sa 阅读全文
posted @ 2018-05-07 16:37 8026 阅读(140) 评论(0) 推荐(0)
摘要: //初始化 et_main_num.findViewById(R.id.et_main_num); et_main_sms.findViewById(R.id.et_main_sms); btn_main_call.findViewById(R.id.btn_main_call); btn_main 阅读全文
posted @ 2018-05-07 10:48 8026 阅读(137) 评论(0) 推荐(0)