Wednesday, February 26, 2014
How to create a hidden activity after the first display
My first load network data activity, which requires a certain time. I hope that this time is not visible to the activity state (or transparent), it is to be loaded once the data is displayed. Which expert has ideas?
PS Please do not use android: style / Theme.NoDisplay, android activity can only use a theme, once you use this, the activity will never show.<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Progressbar prompts the user to give the best, or the user interface did not show how to know why? After the data is loaded and then finished progressbar hide, the other view is displayed. Or progressbar placed in a separate activity inside, loaded call you after the completion of this activity
Reply:
loading is completeThe key is to have a number of projects in this activity, the data needed for each activity is different from a separate activity to load will be very messy. Can you tell me how to make an activity starts but does not show is loaded before displaying, I found setVisible (false) has no effect
Reply:
loading is completeDistal progressbar touches, and you want to display before an activity is a very simple thing progressbar
Reply:
Let the next activity lazy loading it. After the data is loaded and then create. Also progressbar is not very good
Reply:
The first time you start moveToBackTask (true);
And other data is loaded after the second re-start it: startActivity ();
With singleTask the flag, try!
Reply:
Direct layout ah, first a View fill the screen, the color set their own, after data loading setVisiable (GONE)
Reply:
I do not know what you are doing, and I also happen this time something similar, webview loaded network data load time is not displayed, I saw the experience of others, webview loaded with local html, html div set to display data . style.display = "none", then set a div display is loading, js judgment when loaded to a certain extent and then make a div settings, data show, of course, the operation of which there are many, just a thought
Reply:
or moderator reply close to the core of the problem, what to ask before you can use onCreate entrance? I know onNewIntent can be used, but do not know whether this is the best option
Reply:
Unfortunately, I do not necessarily use the activity webview
Reply:
Your idea is very interesting, I try to go back
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment