需要作出一个Android的加载屏幕 [英] Needed to make a Loading Screen in Android

查看:104
本文介绍了需要作出一个Android的加载屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我提出申请,我想设计一个装载在我aplication开始界面。
我有一个图像显示我的应用程序名称。
我要的是,我有一个.gif aniamted加载图标,我想它显示在一个屏幕。我设计我的第一个画面只是我需要。一些帮助,它应该显示.gif注意动画加载图像,然后等待一段时间后,打开我的下一个活动。
请帮我....

I am making an application and I want to design a Loading Starting interface in my aplication . I have an image displaying my application name. what I want is that I have a .gif aniamted loading icon and I want to display it on the first Screen. I have designed my first screen just I needed. Some help that it should display that .gif animated loading image and then wait for some time after that open my next activity. Please help me....

多谢提前。

推荐答案

我与特德同意这一个了,但它听起来像是你可能只是想显示一段时间标志没有做任何背景的工作。如果您正在寻找这样就完成基于时间,而不是工作的事,看看下面的code:

I agree with Ted on this one too, but it sounds like you may just want to show a logo for some time without doing any background work. If you are looking for something that finishes based on time instead of work, check out the code below:

                 waitTimer = new CountDownTimer(60000, 300) {

                 public void onTick(long millisUntilFinished) {
                    //called every 300 milliseconds, which could be used to
                        //display some crude animation
                 }

                 public void onFinish() {
                     //After 60000 milliseconds (60 sec) finish current 
                         //activity and open next activity           
                 }
              }.start();

但特德有工作完成后完成一个真正的载入画面正确的答案。

But Ted has the correct answer for a true loading screen that finishes after work has been completed.

这篇关于需要作出一个Android的加载屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆