Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wv.requestFocus(View.FOCUS_DOWN);
- wv.setOnTouchListener(new View.OnTouchListener() {
- @Override
- public boolean onTouch(View v, MotionEvent event) {
- switch (event.getAction()) {
- case MotionEvent.ACTION_DOWN:
- case MotionEvent.ACTION_UP:
- if (!v.hasFocus()) {
- v.requestFocus();
- }
- break;
- }
- return false;
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment