Using OnGestureListener cursor in not repositioning on edittext
<p>have extend edittext and implemented OnGestureListener , but keyboard has not popped up. I have forcefully popped up keyboard, but cursor is not repositioning. Can you please help me? </p>

<pre><code> public class CustomEditText extends EditText implements
GestureDetector.OnGestureListener {
public CustomEditText(Context context) {
super(context);
setListener();
}
public CustomEditText(Context context, AttributeSet attrs) {
super(context, attrs);
setListener();
}
private GestureDetector gestureDetector;
public void setListener() {
gestureDetector = new GestureDetector(this);
}
@Override
public boolean onTouchEvent(MotionEvent me) {
return gestureDetector.onTouchEvent(me);
}


public boolean onDown(MotionEvent arg0) {
return true;
}

public boolean onFling(MotionEvent arg0, MotionEvent arg1, float arg2,
float arg3) {
return false;
}

public void onLongPress(MotionEvent arg0) {
}

public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX,
float distanceY) {
return onScroll(e1, e2, distanceX, distanceY);
}
public void onShowPress(MotionEvent e) {
}
public boolean onLongClick(View v) {
return false;
}
public boolean onSingleTapUp(MotionEvent e) {
return false;
}
}
</code></pre>
