2. 运行结果
3. 编写代码
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
/* 建立一个按钮对象 */
Button btnButton1 = new Button(this);
this.setContentView(btnButton1);
btnButton1.setText(R.string.str_button1);
/* 为建立好的按钮对象,指定OnClicklistener * 亦即按下按钮会执行的事件 * 并在事件处理函数中显示ProgressBar */
btnButton1.setOnClickListener(myShowProgressBar);
}
4. 扩展学习与作业
http://www.eyeandroid.com/thread-9872-1-1.html
视频讲解:http://www.eyeandroid.com/thread-9884-1-1.html
1864



被折叠的 条评论
为什么被折叠?



