title: Hide and Unhide EditText
body: <p>I am trying to hide or show edit text on selecting items from spinner in my app.Here is the code please suggest how to fix it</p>
  
  <pre><code> ArrayAdapter adapter1 = ArrayAdapter.createFromResource(
              this, R.array.country_array, android.R.layout.simple_spinner_item);
          adapter1.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
          spinner1.setAdapter(adapter1);
   spinner1.setOnItemSelectedListener(new OnItemSelectedListener() {
       @Override
       public void onItemSelected(AdapterView&lt;?&gt; parentView, View selectedItemView, int position, long id) {
           rlDate.setVisibility(View.VISIBLE);
           rlTime.setVisibility(View.VISIBLE);
  
       }
  
       @Override
       public void onNothingSelected(AdapterView&lt;?&gt; parentView) {
  
       }
   });
  </code></pre>