Ostrzeżenie onTouchListener: onTouch powinien wywołać Widok # performClick po wykryciu kliknięcia

Stworzyłem onTouchListener. Niestety onTouch () method throws me a warning:

com/calculator/activitys/Calculator$1#onTouch should call View#performClick when a click is detected
Co to znaczy? Nie znalazłem żadnych informacji na ten temat. Oto Pełny kod:
LinearLayout llCalculatorContent = (LinearLayout) fragmentView.findViewById(R.id.calculator_content);

llCalculatorContent.setOnTouchListener(new View.OnTouchListener() {

    @Override
    public boolean onTouch(View v, MotionEvent event) {
        Tools.hideKeyboard(getActivity(), getView());
        getView().clearFocus();
        return false;
    }   
});
Author: The Heist, 2014-07-25

1 answers

Proszę bardzo:

public boolean onTouch(View v, MotionEvent event) {
    switch (event.getAction()) {
    case MotionEvent.ACTION_DOWN:
        //some code....
        break;
    case MotionEvent.ACTION_UP:
        v.performClick();
        break;
    default:
        break;
    }
    return true;
}
 76
Author: Secko,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2014-09-06 02:11:25