我已经创建了一个android测验应用程序,其中我从web服务加载所有问题。对于这种在onCreate方法我写了下面的Android中的进度条问题
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.testlayoutforimage);
loadControls();
getPassingValue();
ParserMethod parserMethod=new ParserMethod();
//questionsObj=parserMethod.parseQuestionDetailsFor(passingFeature,numOfQuestion,passingSubject,passingChapter);
questionsObj=parserMethod.parseQuestionImages(passingSubject,passingFeature,passingChapter;
}
但问题是,当问题被加载它需要一定的时间。 我想添加一个进度条。当页面被加载时,显示进度并且问题是加载。之后,酒吧是删除和显示问题。我可以做到这一点。