We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 824a12b commit d6c4354Copy full SHA for d6c4354
lib/java/com/google/android/material/appbar/AppBarLayout.java
@@ -967,6 +967,19 @@ public boolean isLiftOnScroll() {
967
return liftOnScroll;
968
}
969
970
+ /**
971
+ * Sets the view that the {@link AppBarLayout} should use to determine whether it should be
972
+ * lifted.
973
+ */
974
+ public void setLiftOnScrollTargetView(@Nullable View liftOnScrollTargetView) {
975
+ this.liftOnScrollTargetViewId = View.NO_ID;
976
+ if (liftOnScrollTargetView == null) {
977
+ clearLiftOnScrollTargetView();
978
+ } else {
979
+ this.liftOnScrollTargetView = new WeakReference<>(liftOnScrollTargetView);
980
+ }
981
982
+
983
/**
984
* Sets the id of the view that the {@link AppBarLayout} should use to determine whether it should
985
* be lifted.
0 commit comments