Floating action button not visible on scrolling after updating Google Support & Design Library

后端 未结 3 734
挽巷
挽巷 2020-12-29 22:59

I\'ve tried updating com.android.support:appcompat and com.android.support:design from: 25.0.1 to 25.1.0, as follows:

compile \'com         


        
3条回答
  •  温柔的废话
    2020-12-29 23:44

    in CoordinatorLayout 25.1.0 (

       for (int i = 0; i < childCount; i++) {
                final View view = getChildAt(i);
                if (view.getVisibility() == GONE) {
                    // If the child is GONE, skip...
                    continue;
                }
    

    in 25.0.1

    for (int i = 0; i < childCount; i++) {
                final View view = getChildAt(i);
                final LayoutParams lp = (LayoutParams) view.getLayoutParams();
                if (!lp.isNestedScrollAccepted()) {
                    continue;
                }
    
                final Behavior viewBehavior = lp.getBehavior();
                if (viewBehavior != null) {
                    viewBehavior.onNestedScroll(this, view, target, dxConsumed, dyConsumed,
                            dxUnconsumed, dyUnconsumed);
                    accepted = true;
    
            }
    

提交回复
热议问题