Skip to content

Instantly share code, notes, and snippets.

@fercarcedo
Created March 19, 2020 17:20
Show Gist options
  • Select an option

  • Save fercarcedo/3f408c1e268c0d4f6727436158299be5 to your computer and use it in GitHub Desktop.

Select an option

Save fercarcedo/3f408c1e268c0d4f6727436158299be5 to your computer and use it in GitHub Desktop.

Revisions

  1. fercarcedo created this gist Mar 19, 2020.
    3 changes: 3 additions & 0 deletions controlime.kt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    scrollView.viewTreeObserver.addOnScrollChangedListener {
    animationController?.setInsetsAndAlpha(Insets.of(0, 0, 0, scrollView.scrollY), 1f, 0f)
    }