android 中 activity 着重点

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文件的沟通。

?

?