Utility methods for Android Views
.
Delegates for reading and writing arbitrary properties for a View
.
Delegates include:
viewDelegate
: Read/write. Similar to the standard libraryby map()
, lets you read/write properties from/to aView
instance. Usage:var ImageView.imageUrl by viewDelegate<String?>()
- viewBindingDelegate: Read/write. Similar to the standard library
by map()
, lets you read/write properties from/to aViewBinding
instance. Usage:var UserBinding.user by viewDelegate<User?>()
A utility class for quickly implementing the quick return pattern for View
's that come into the screen and leave.
Useful for Hiding Toolbars
and FloatingActionButton
s.
It uses the SpringAnimation from the Jetpack dynamic animations library.
A utility class for consuming WindowInsets
if you decide to.
They describe what insets to consume for whatever class that uses them.
A utility method for popping any arbitrary View
over an anchor View
A utility method that returns the deepest nested View
that has focus