Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- setContentView(R.layout.login_activity);
- <activity
- android:name=".activities.Login"
- android:configChanges="keyboardHidden|screenSize" />
- @Override
- public void onConfigurationChanged(Configuration newConfig) {
- super.onConfigurationChanged(newConfig);
- Log.d(TAG, "onConfigurationChanged() " + newConfig.orientation);
- if (newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE)
- {
- //myCode
- } else if (newConfig.orientation == Configuration.ORIENTATION_PORTRAIT){
- //myCode
- }
- }
Add Comment
Please, Sign In to add comment