Code example for ViewFlipper

Methods: getChildAt, setDisplayedChild

0
			} 
		}); 
		((Button) findViewById(R.id.btn_new_bookmark)).setOnClickListener(new View.OnClickListener() { 
			@Override 
			public void onClick(View v) { 
				mFlipper.setDisplayedChild(2); 
				mFlipper.getChildAt(2).setVisibility(View.VISIBLE); 
			} 
		}); 
		((Button) findViewById(R.id.btn_new_file)).setOnClickListener(new View.OnClickListener() { 
			@Override 
			public void onClick(View v) { 
		        Intent intent = new Intent(Intent.ACTION_GET_CONTENT);  
		        intent.setType("*/*");  
		        intent.addCategory(Intent.CATEGORY_OPENABLE); 
 
		        try { 
		            startActivityForResult(Intent.createChooser(intent, "Select a File to Upload"), FILE_SELECT_CODE); 
		        } catch (android.content.ActivityNotFoundException ex) { 
		            Toast.makeText(NewDropActivity.this, "Please install a File Manager.", Toast.LENGTH_SHORT).show(); 
		        }