Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void onConfigurationChanged(Configuration newConfig) {
- super.onConfigurationChanged(newConfig);
- if (newConfig.orientation == Configuration.ORIENTATION_PORTRAIT) {
- setContentView(R.layout.activity_splash);
- }
- else if (newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE) {
- setContentView(R.layout.activity_splash);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement