您好我是Android的新手,我正在尝试将进程Dialog放在列表视图的点击事件上,毫无疑问它的工作但我发现进程Dialog显示很晚,我需要它,它应该在我点击后立即显示,我的代码和平就在这里。请给我适当的解决方案。谢谢!
lv1.setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView<?> a, View v,
final int position, long id) {
pd = ProgressDialog.show(v.getRootView().getContext(), "",
"Please Wait....", true, true);
MyThreadNew myThread = new MyThreadNew(position);
// myThread.setPriority(Thread.MIN_PRIORITY);
myThread.start();
}
});
答案 0 :(得分:0)
你是在Emulator中测试它然后响应慢,只需检查设备