Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
从活动切换到另一个活动时是否可以显示进度条。请帮助我
尝试这个!!!!
ProgressDialog pd = new ProgressDialog(FirstActivity.this);
//在调用意图之前使用它
pd.setMessage("处理中...");
pd.show();
//在firstActivity的onResume中调用
pd.dismiss();
您必须在第二个活动中显示进度条,因为第一个活动将被隐藏并且无论如何都不会显示。