Advertisement
Guest User

Untitled

a guest
Nov 20th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. view.findViewById(R.id.constraintlayout_newtur_step3).setOnTouchListener(new View.OnTouchListener() {
  2. @Override
  3. public boolean onTouch(View v, MotionEvent event) {
  4. InputMethodManager imm = (InputMethodManager) getActivity().getSystemService(activity.INPUT_METHOD_SERVICE);
  5. imm.hideSoftInputFromWindow(activity.getCurrentFocus().getWindowToken(), 0);
  6. return true;
  7. }
  8. });
  9.  
  10. android:clickable="true"
  11. android:focusable="true"
  12. android:focusableInTouchMode="true"
  13. android:id="@+id/constraintlayout_newtur_step2">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement