为了账号安全,请及时绑定邮箱和手机立即绑定

bt1=(Button)findViewById(R.id.button1); bt2=(Button)findViewById(R.id.button2);

 bt1=(Button)findViewById(R.id.button1);
    bt2=(Button)findViewById(R.id.button2);

是找到位置的意思吗?

正在回答

2 回答

顾名思义,通过id查找View

0 回复 有任何疑惑可以回复我~
#1

慕移动5669817 提问者

非常感谢!
2017-07-26 回复 有任何疑惑可以回复我~
#2

慕粉152226940

客气了!
2017-07-26 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
Android攻城狮的第一门课(入门篇)
  • 参与学习       312500    人
  • 解答问题       4931    个

想快速掌握Android应用开发基础,选择学习这门课程就对了。

进入课程

bt1=(Button)findViewById(R.id.button1); bt2=(Button)findViewById(R.id.button2);

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号