Skip to content
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

Android change of layout or activity with fade-in and fade-out issues hence without button, HELP! #857

Open
NahashonThiongo opened this issue Jul 6, 2022 · 1 comment

Comments

@NahashonThiongo
Copy link

NahashonThiongo commented Jul 6, 2022

public class MainActivity extends AppCompatActivity {
private static int WELCOME_TIMEOUT = 4000;
@OverRide
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);;
setContentView(R.layout.activity_main);
new Handler().postDelayed(new Runnable () {
@OverRide
public void run() {
Intent welcome = new Intent (MainActivity.this, SecondActivity.class);
startActivity(welcome);
overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
finish();
}
}, WELCOME_TIMEOUT);
}
}

@NahashonThiongo
Copy link
Author

other way to write the code and include fade in and out without button and should be circle transition fade out settings

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

No branches or pull requests

1 participant