Code example for FragmentActivity

Methods: onConfigurationChanged

0
		//DisplayUtil.calculateScreenBounds(getApplicationContext()); 
	} 
	@Override 
	public void onConfigurationChanged(Configuration newConfig) {
		System.out.println("---------------------------  "+newConfig.orientation);
		super.onConfigurationChanged(newConfig);
 
		if(stackScrollView != null){
			stackScrollView.onConfigurationChanged(newConfig);
		} 
 
 
	} 
 
	private View setupViews() {
		//LinearLayout rootView = new LinearLayout(this); 
		//rootView.setOrientation(LinearLayout.HORIZONTAL); 
		//rootView.setLayoutParams(new LinearLayout.LayoutParams(AbsListView.LayoutParams.FILL_PARENT, AbsListView.LayoutParams.FILL_PARENT)); 
		FrameLayout rootView = new FrameLayout(getApplicationContext());
		rootView.setLayoutParams(new FrameLayout.LayoutParams(AbsListView.LayoutParams.FILL_PARENT, AbsListView.LayoutParams.FILL_PARENT));
		rootView.setBackgroundResource(R.drawable.backgroundimagerepeat);