|
|
|
@ -42,12 +42,6 @@ public class BehaviorBottomPadding extends CoordinatorLayout.Behavior<View> {
|
|
|
|
|
return (dependency instanceof Snackbar.SnackbarLayout);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public boolean onLayoutChild(@NonNull CoordinatorLayout parent, @NonNull View child, int layoutDirection) {
|
|
|
|
|
setPadding(child, 0);
|
|
|
|
|
return super.onLayoutChild(parent, child, layoutDirection);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public boolean onDependentViewChanged(@NonNull CoordinatorLayout parent, @NonNull View child, @NonNull View dependency) {
|
|
|
|
|
setPadding(child, dependency.getHeight());
|
|
|
|
|