Android: How to make Spinner invisible and then visible again?

I have the following Spinner:

Spinner spinner = (Spinner)findViewById(R.id.sp1);

and I initially make it invisible as follows:

spinner.setVisibility(TRIM_MEMORY_BACKGROUND);

This makes it invisible Spinner, but how to make it visible again?

Thanks in advance.

+5
source share
1 answer

// hide

spinner.setVisibility(View.GONE);

// Show

spinner.setVisibility(View.VISIBLE);
+14
source

All Articles