试题详情
单项选择题在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
  • 关注下方微信公众号,在线模考后查看

热门试题