title: How to hide one item on clicking another item in spinner
body: <p>friends here is the code
  when i am clicking on amazon it is appearing but when i m clicking on snap-deal the amazon is also displaying </p>
  
  <pre><code>public class Sample extends Activity {
      Spinner `sp`;
      TextView tv,tv1,tv2;
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
          tv=(TextView)findViewById(R.id.textView1);
          tv1=(TextView)findViewById(R.id.textView2);`enter code here`
          tv2=(TextView)findViewById(R.id.textView3);
          String items[]={"amazon","flipkart","snapdeal"};
          ArrayAdapter aa=new ArrayAdapter(Sample.this,android.R.layout.simple_spinner_dropdown_item,items);
          sp.setAdapter(aa);
          sp.setOnItemClickListener(new AdapterView.OnItemClickListener() {
              @Override
              public void onItemClick(AdapterView&lt;?&gt; parent, View view, int position, long id) {
                  switch(position)
                  {
                      case 0:
                      {
                          if(tv.getVisibility() == View.VISIBLE)
                              tv.setVisibility(View.GONE);
                          else
                              tv.setVisibility(View.VISIBLE);
                      }
                      case 1:
                      {
                          if(tv1.getVisibility() == View.VISIBLE)
                              tv1.setVisibility(View.GONE);
                          else
                              tv1.setVisibility(View.VISIBLE);
                      }
  
                  }
              }
          });
      }
  </code></pre>