android - onTouchListener warning: onTouch should call View#performClick when a click is detected -
I have created a is? I have not received any information about this warning. Here's the full code: Here you can go: onTouchListener unfortunately the touch () method
throws A warning to me:
com / calculator / activitys / calculator $ 1 # Click on #
Linear Lowe clayter content = (linear layout) fragmentView.findViewById (R.id.calculator_content); LlCalculatorContent.setOnTouchListener (see new OnTouchListener) {@ Override Public Boolean On Touch (see V, Motion Event Event) {Tools.hideKeyboard (getActivity (), getView ()); GetView () .CleefFocus (); Return Refund; }});
public Boolean On-Touch (see V, Motion Event Event) {Switch (event.getAction ()) {Case MotionEvent.ACTION_DOWN: // Some codes .... Break; Case Motion Event Action_up: v.performClick (); break; Default: Break; } Back true; }
Comments
Post a Comment