CoordinatorLayout extension of Views DSL.
Supported platforms: Android.
If you want to use this dependency without using one of the fun packs,
you can use Splitties.viewsDslCoordinatorlayout
, provided you have refreshVersions added to the project.
For reference, the maven coordinates of this module are com.louiscad.splitties:splitties-views-dsl-coordinatorlayout
.
- Functions to instantiate a CoordinatorLayout
CoordinatorLayout
extensionsCoordinatorLayout.LayoutParams
extensions
Instead of using view(::CoordinatorLayout, …) { … }
, you can use coordinatorLayout(…) { … }
.
This extension has default width and height set to wrapContent
and an
optional gravity
parameter.
Has a matchParent
width.
Use it when adding an AppBarLayout
or a similar View that takes the app bar role.
Anchors the passed View with the specified gravity, setting a generated id if it had none.