mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-28 16:55:56 +00:00
Fixed behavior
This commit is contained in:
parent
a34698622a
commit
922da77a33
1 changed files with 2 additions and 0 deletions
|
@ -46,6 +46,7 @@ public class BehaviorBottomMargin extends CoordinatorLayout.Behavior<View> {
|
||||||
public boolean onDependentViewChanged(@NonNull CoordinatorLayout parent, @NonNull View child, @NonNull View dependency) {
|
public boolean onDependentViewChanged(@NonNull CoordinatorLayout parent, @NonNull View child, @NonNull View dependency) {
|
||||||
CoordinatorLayout.LayoutParams lparam = (CoordinatorLayout.LayoutParams) child.getLayoutParams();
|
CoordinatorLayout.LayoutParams lparam = (CoordinatorLayout.LayoutParams) child.getLayoutParams();
|
||||||
lparam.setMargins(0, 0, 0, dependency.getHeight());
|
lparam.setMargins(0, 0, 0, dependency.getHeight());
|
||||||
|
child.setLayoutParams(lparam);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -53,5 +54,6 @@ public class BehaviorBottomMargin extends CoordinatorLayout.Behavior<View> {
|
||||||
public void onDependentViewRemoved(CoordinatorLayout parent, View child, View dependency) {
|
public void onDependentViewRemoved(CoordinatorLayout parent, View child, View dependency) {
|
||||||
CoordinatorLayout.LayoutParams lparam = (CoordinatorLayout.LayoutParams) child.getLayoutParams();
|
CoordinatorLayout.LayoutParams lparam = (CoordinatorLayout.LayoutParams) child.getLayoutParams();
|
||||||
lparam.setMargins(0, 0, 0, 0);
|
lparam.setMargins(0, 0, 0, 0);
|
||||||
|
child.setLayoutParams(lparam);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue