Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Aug 16th, 2018 46 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  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