Code example for Button

Methods: setVisibility

0
        }); 
        attachImage = (ImageView) view.findViewById(R.id.compose_image);
        attachImage.setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {
                image = null;
                attachButton.setVisibility(View.VISIBLE);
                attachImage.setVisibility(View.GONE);
            } 
        }); 
        return view;
    } 
 
    @Override 
    public void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
        if (resultCode == Activity.RESULT_OK) {
            if (requestCode == SELECT_IMAGE) {
                Uri selectedImageUri = data.getData();
 
                //OI FILE Manager 
Connect your IDE to all the code out there  Get Codota for Java