bt1=(Button)findViewById(R.id.button1); bt2=(Button)findViewById(R.id.button2);
?bt1=(Button)findViewById(R.id.button1);
??? bt2=(Button)findViewById(R.id.button2);
是找到位置的意思嗎?
?bt1=(Button)findViewById(R.id.button1);
??? bt2=(Button)findViewById(R.id.button2);
是找到位置的意思嗎?
2017-07-26
舉報
2017-07-26
顧名思義,通過id查找View
2022-03-24
正確,加油,希望課程對你有幫助。親,一定要記住學習html中的標簽是學習它的語義,也就是每個標簽都有它自己的用途,而不要看它的表現(樣式),因為樣式在后面css樣式中是可以任意去修改的。