Android Studio开发的程序只能运行在模拟器上,不可以运行在真机上。 ( )
查看答案
Android SDK不需要提前下载,在安装完Android Studio会提示下载。( )
在MainActivity中需要找到一个id是sysdate的DatePicker组件,下面哪种写法是正确的?( )
A. DatePicker mydate=findViewById(R.id. sysdate);
B. DatePicker mydate =findViewById(R.id. datePicker_1);
C. DatePicker mydate =findViewById(R.id. DatePicker);
DatePicker mydate =findViewById(R.id. string.sysdate);
在MainActivity中需要找到一个id是bookName的Button组件,下面哪种写法是正确的?( )
A. Button btn=findViewById(R.id. bookName);
Button btn=findViewById(R.id. code);
C. Button btn=findViewById(R.id. button_1);
D. Button btn=findViewById(R.id. string.bookName);