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:
cited a floor tantahe reply:
best to give a progressbar prompt the user, 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, calling you this activity

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:
cited a floor tantahe reply:
best to give a progressbar prompt the user, 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, calling you this activity

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:
references, 4th Floor huxiweng reply:
let it delay loading the next activity. After the data is loaded and then create. Also progressbar not very good
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:
reference to the 7th floor lulong1985 reply:
do not know what you are doing, and I also happen this time something similar, webview loaded network data loading When you do not show up, I saw the experience of others, webview loaded with local html, html data set is displayed div.style.display = "none", then set the display being loaded in a div, js judge loaded to a certain extent div and then make a set time, the data show, of course, of which there are many operations, but ideas
Unfortunately, I do not necessarily use the activity webview
Reply:
reference to the 6th floor wlianghe00 reply:
direct layout ah, first a View to fill the screen, the color set their own, after data loading setVisiable (GONE)
Your idea is very interesting, I try to go back

No comments:

Post a Comment