如何在壁纸加载中放置消息 [英] How to put message in wallpaper loading
本文介绍了如何在壁纸加载中放置消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我创建动态壁纸当我点击设置壁纸按钮时需要很长时间才能设置它。在那个时候我想显示一个Loading ......给用户的消息请帮帮我。
解决方案
你可以使用 ProgressDialog ,如:
ProgressDialog pd = new ProgressDialog(yourActivity。 this );
pd.setMessage( Loading);
pd.show();
在活动中加载壁纸。
旺旺看看它是如何工作的?然后看..
Android的不确定ProgressDialog教程 [ ^
Hi All,
I have creating live wallpaper When i click set wallpaper button it is take a long time to set it.In that time i Want to display a Loading...... message to the user please help me.
解决方案
You can use ProgressDialog like:
ProgressDialog pd = new ProgressDialog(yourActivity.this); pd.setMessage("Loading"); pd.show();
Inside your activity where you load your wallpaper.
Want to see how it works? Then see..
Android's indeterminate ProgressDialog tutorial[^]
这篇关于如何在壁纸加载中放置消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文