首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Android >

android 中 activity 着重点

2013-08-29 
android中 activity 重点?5.Button mybutton ?(Button)findViewById(R.id.mybutton)mybutton.setText(R

android 中 activity 重点

?5.Button mybutton = ?(Button)findViewById(R.id.mybutton);

mybutton.setText(R.string.hello_world);

? ? ? ? ? ? ? ? 上例说明了在activity中获得控件的方法:findViewById(),也就解决了布局文件和java文件的沟通。

?

?

热点排行