Code example for Gallery

Methods: setVisibility

0
    public void clickOnHide(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.GONE);
		//myGallery.setAdapter(null); 
    }	 
 
    public void clickOnPuzzle(View view) {
    	Intent intent = new Intent(this, UseSqlite4list.class);
    	//Cursor cursor = (Cursor) adapter.getItem(position); 
    	TextView searchText = (TextView) findViewById(R.id.searchText);	
		String searchtext = searchText.getText().toString();
    	intent.putExtra("searchText", searchtext);
    	startActivity(intent);
    }	 
    public void clickOn8(View view) {
    	Intent intent = new Intent(this, DownLoadFileActivity.class);
    	//Cursor cursor = (Cursor) adapter.getItem(position); 
    	TextView searchText = (TextView) findViewById(R.id.searchText);