Another java.lang.IllegalArgumentException: parameter must be a descendant of this view

后端 未结 3 498
心在旅途
心在旅途 2021-02-06 08:59

Users are getting the following exception in my app on certain phones. I tried reproducing the error myself but couldn\'t . I searched through stack overflow for similar problem

3条回答
  •  遥遥无期
    2021-02-06 09:29

    I have append on scroll listener in ScrollView and solve problem

     lst_payment_info.setOnScrollListener(new AbsListView.OnScrollListener() {
            @Override
            public void onScrollStateChanged(AbsListView view, int scrollState) {
                if (SCROLL_STATE_TOUCH_SCROLL == scrollState) {
                    View currentFocus = getCurrentFocus();
                    if (currentFocus != null) {
                        currentFocus.clearFocus();
                    }
                }
            }
    
            @Override
            public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) {
    
            }
        });
    

提交回复
热议问题