title: How to know whether the List View is Active or not?
body: <p>Hai dude,
           I developed an application which intially displayed Games Listview , suppose if the user clicks the football elemnet in that games listview, then the football listview opens ,in that if user selected the particular player listview, then it is displayed, my problem is i want 2 know which listview is in active.</p>
  
  <p>Can any one help me regarding on this?</p>
  
  <pre><code>if(tabHost.getCurrentTab() == 2)
                      {  
                          Log.v("I m Here Boss","0");
                          if(findViewById(R.id.bars_school_details).getVisibility() == View.VISIBLE)
                          {
                              Log.v("I m Here Boss","1");
                              findViewById(R.id.bars_school_details).setVisibility(View.GONE);
                              findViewById(R.id.bars_list).setVisibility(View.GONE);
                              findViewById(R.id.bars).setVisibility(View.VISIBLE);
                          }
                          else if(findViewById(R.id.bars_list).getVisibility() == View.VISIBLE)
                          {
                              Log.v("I m Here Boss","2");
                              findViewById(R.id.bars_school_details).setVisibility(View.VISIBLE);
                              findViewById(R.id.bars_list).setVisibility(View.GONE);
                              findViewById(R.id.bars).setVisibility(View.GONE);
                          }
  
                      }
  </code></pre>