Code example for Gallery

Methods: setVisibility

0
    public void clickOnNew(View view) {
    	// Enable Layout 2 and Disable Layout 1 
    	//Layout1 .setVisibility(View.GONE); 
    	//Layout2.setVisibility(View.VISIBLE); 
		//myGallery = (Gallery) findViewById(R.id.puzzleGallery); 
    	myGallery.setVisibility(View.VISIBLE);
		//myGallery.setAdapter(null); 
    }	 
    public void clickOnTop20(View view) {
    	Intent intent = new Intent(this, GetWebXmlActivity.class);
    	//Cursor cursor = (Cursor) adapter.getItem(position); 
    	//TextView searchText = (TextView) findViewById(R.id.searchText);	 
		//String searchtext = searchText.getText().toString(); 
    	//int position=gameImageAdp.getSelected(); 
    	//intent.putExtra("gameId", position); 
    	startActivity(intent);
    }	 
    public void clickOnHide(View view) {
    	// Enable Layout 2 and Disable Layout 1 
    	//Layout1 .setVisibility(View.GONE); 
    	//Layout2.setVisibility(View.VISIBLE);