title: How to set focus in listview item?
body: <p><img src="https://i.stack.imgur.com/kodkz.png" alt="enter image description here">I have to set focus on listview item. ListView consist of TextView.
  point where i want to set focus on listview item, at that point i have the position of that item.</p>
  
  <p>I have tried setSelectio(pos), where pos is the position of listview item, but this results in setting the position of item at position  on the top of the screen.</p>
  
  <p>please suggest me how to proceed.</p>
  
  <pre><code>   builder.setPositiveButton(R.string.save,
                  new DialogInterface.OnClickListener() {
                      public void onClick(DialogInterface dialog, int id) {
                          Log.d("@gaurav", "changeText is not null");
  
                          if (null != changeText) {
                              Log.d("@gaurav", "changeText is not null");
                              if (!(changeText.getText().toString().equalsIgnoreCase(""))) {
                                  myList
                                          .set(pos, changeText.getText()
                                                  .toString());
                                  adapter.notifyDataSetChanged();
                                  setListAdapter(adapter);
                              }
                          } else {
                              Log.d("@gaurav", "changeText is null");
                          }
                          getListView().setFocusableInTouchMode(true);
                          getListView().setSelection(pos);
                          getListView().requestFocus();
                      }
  
                  });
  </code></pre>