初始化时加上pd.setMax(最大的值);
解决方案 »
- 游戏界面布局问题
- 怎么在一个activity中同时显示多个view对象
- Android程序的自动更新功能
- tabhost+viewPage之后.edittext按退格键的时候没反应
- 创建新的Android Application - adt - sdk - support失败问题
- 别人做好的项目,修改代码后,重新运行后还是和原来一样
- 求指导 Flash media server 的配置方法
- 《双11狂欢,移动电商你还寂寞吗》
- 请教用NDK编译和调试纯c/c++可执行程序
- android null object reference错误还有一个不知道View组件
- http和socket的使用场景
- ListView中嵌套ViewPager(ViewPager是item的一部分),并且存在判断位置的小白点。
pd.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
pd.setTitle("下载");
pd.setIcon(R.drawable.ic_launcher);
pd.setMessage("正在下载");
pd.setMax(100);
pd.setIndeterminate(true);
pd.setCancelable(true);
pd.setButton(DialogInterface.BUTTON_POSITIVE, "确定",
pd = new ProgressDialog(this);
pd.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
pd.setTitle("下载");
pd.setIcon(R.drawable.ic_launcher);
pd.setMessage("正在下载");
pd.setMax(100);
pd.setIndeterminate(true);
pd.setCancelable(true);
pd.setButton(DialogInterface.BUTTON_POSITIVE, "确定",
就改一处就可以显示数字了。哈哈。