title: show/hide button when focus the list item in android listview
body: <p>Many list items are listed in my listview. </p>
  
  <p>In that list item having 2 buttons and one textview.</p>
  
  <p>Here i have using following code. Now my list showing the edit/delete button.If I have to focus which list item means that item alone have to show edit/delete button.other list item don't need to show the edit/delete button.</p>
  
  <p>How can i do ? Please check it and give me a idea to implement this part ?</p>
  
  <pre><code> stafflist.setOnItemClickListener(new OnItemClickListener() {
  
              @Override
              public void onItemClick(AdapterView&lt;?&gt; arg0, View view, int position,
                      long arg3) {
                  // TODO Auto-generated method stub
  
                      Button bPrevious = (Button)view.findViewById(R.id.view_staff);
                      bPrevious.setVisibility(View.VISIBLE);
  
                  Button bPlaying = (Button)view.findViewById(R.id.delete_staff);
                  bPlaying.setVisibility(View.VISIBLE);
              }
          });
  </code></pre>
  
  <p>Now if i have selected any item from that list means it's showing the edit/delete button. after that i have selected any other item from list means that item also showing the edit/delete button with this previous selected  item also showing the edit/delete button.</p>
  
  <p>But i want to show the current selected item only need to show edit/delete button ?</p>
  
  <pre><code> public View getView(int position, View convertView, ViewGroup parent) {
      View vi=convertView;
      if(convertView==null)
          vi = inflater.inflate(R.layout.manager_list_staff, null);
      TextView staffname = (TextView)vi.findViewById(R.id.my_staffname);
      TextView staff_empcode = (TextView)vi.findViewById(R.id.my_staffempcode);
      LinearLayout editdelete = (LinearLayout)vi.findViewById(R.id.edit_delete);
      final Button edit_staff = (Button)vi.findViewById(R.id.view_staff); 
      final Button delete_staff = (Button)vi.findViewById(R.id.delete_staff);
      HashMap&lt;String, String&gt; Order = new HashMap&lt;String, String&gt;();
      Order = data.get(position);
      int temp = parent.getId()+1;
      staff_id.setText(Order.get(Manager_List_Staff.TAG_STAFF_ID));
  </code></pre>