在Activity中需要找到一个id是bookName的的TextView组件,下面哪种语句写法是正确的?()
- A、TextView tv=this.findViewById(R.id.bookName);
- B、TextView tv=(TextView)this.findViewById(R.id.code);
- C、TextView tv=(TextView)this.findViewById(R.id.bookName);
- D、TextView tv=(TextView)this.findViewById(R.string.bookName);
正确答案:C
答案解析:有

微信扫一扫手机做题