在Android程序里显示等待滚动圈(使用ProgressDialog)| Show waiting rolling circle in android application (using ProgressDialog)
2010-06-20 12:09
1031 查看
see the effect in attached file.
Code here:
package com.sina.android.acx;
import android.app.Activity;
import android.app.ProgressDialog;
import android.os.Bundle;
public class AClientXActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
ProgressDialog dialog = new ProgressDialog(this);
dialog.setMessage("Please wait while loading...");
dialog.setIndeterminate(true);
dialog.setCancelable(true);
dialog.show();
}
}
相关文章推荐
- 如何在Android程序中使用ACRA3(How to install ACRA3 in your Android application)
- android:ProgressDialog.show() 和getApplicationContext冲突 ,如何解决?
- 如何在Android程序中使用ACRA3(How to install ACRA3 in your Android application)
- Android程序安装后在模拟器上不显示,并且控制台显示The launch will only sync the application package on the device!
- ProgressDialog show()的时候 12-18 11:05:55.356: E/AndroidRuntime(461): android.view.WindowManager$Ba
- android开发中-使用Dialog ProgressDialog
- Android分享之ProgressDialog使用
- 使用showOptionDialog显示多项选择框
- Android 屏幕旋转(方向和configChanges) 处理 AsyncTask 和 ProgressDialog 的最佳方案(DialogFragment 使用 续)
- android使用AlertDialog提示 Unable to add window -- token null is not for an application的解决方案
- Android开发本地及网络Mp3音乐播放器(十六)歌词显示及滚动事件实现、ViewPager使用
- 使用伪寄存器调试MSVC++程序的介绍--An introduction to debugging in MSVC++ using Pseudoregisters
- Android在服务service里使用Toast显示和弹出Dialog
- C# 窗体显示 Show和ShowDialog的使用
- android--自定义ProgressDialog显示位置(其它Dialog子类都可以设置)
- Using C++ Code in Android Application
- using global variable in android extends application
- 使用伪寄存器调试MSVC++程序的介绍--An introduction to debugging in MSVC++ using Pseudoregisters
- Android 自定义评价Dialog(RatingBar的使用和EditText的剩余字数显示)
- AcadAppser.Application.ShowModelessDialog() 不报错也不显示