Code example for Gallery

Methods: setVisibility

0
			portraitLayout(); 
		} 
	} 
 
	private void portraitLayout() { 
		mServiceGallery.setVisibility(View.VISIBLE);
		mTitleBar.setVisibility(View.VISIBLE);
		mHoriCtrl.setVisibility(View.GONE);
		mPortCtrl.setVisibility(View.VISIBLE);
		adjustPlaybackSize(); 
	} 
 
	private void landscapeLayout() { 
		mTitleBar.setVisibility(View.GONE);
		mServiceGallery.setVisibility(View.GONE);
		mHoriCtrl.setVisibility(View.INVISIBLE);
		mPortCtrl.setVisibility(View.GONE);
		adjustPlaybackSize(); 
	} 
 
	private static class ServiceItemAdapter extends BaseAdapter {