daily pastebin goal
53%
SHARE
TWEET

Untitled

a guest Aug 16th, 2018 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. android:configChanges="keyboardHidden|orientation|screenSize"
  2.    
  3. switch (getResources().getConfiguration().orientation) {
  4.                 case Configuration.ORIENTATION_PORTRAIT:
  5.                     setContentView(R.layout.control_layout_vertical);
  6.                     break;
  7.                 case Configuration.ORIENTATION_LANDSCAPE:
  8.                     setContentView(R.layout.control_layout_horizontal);
  9.                     break;
  10.             }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top