Skip to content

added splashScreen #27 #58

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

hrprt96
Copy link

@hrprt96 hrprt96 commented Dec 18, 2018

[screenshot]
splash screen

Animation myanim = AnimationUtils.loadAnimation(this , R.anim.mytransition);
tv.startAnimation(myanim);
iv.startAnimation(myanim);
final Intent i = new Intent(this, GlobalActivity.class);
Copy link
Owner

@Sparker0i Sparker0i Dec 19, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh no, this can't be accepted. Simply doing a sleep() will only increase the time taken to display the weather data.

As I had said in #27 , GlobalActivity.java must be the splash screen. In this you check whether the city has been set or not. If not, it goes to Enter City screen. If it has been set, GlobalActivity.java will load the weather data in this splash screen and send the data received to the WeatherActivity, where the WeatherFragment should parse it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants