blend blend - 6 months ago 40
Android Question

android - make a spinner or not pprogrammatically

This is a spinner defined in the xml layout below.

android:layout_height="wrap_content" />

I am using the spinner in the activity class as shown below

void spinner(){
adapterMem=new ArrayAdapter<String>(this,R.layout.spinner_layout,,listItemsMem);
new AdapterView.OnItemSelectedListener() {

considering that when the above method is called, how can I disabled it from appearing from a users sight.

Answer Source

every view has a setVisibility() method. you can use it to set a view's appearance to INVISIBLE, GONE and VISIBLE.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download