CoordinatorLayout extension of Views DSL.
Supported platforms: Android.
- 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.
implementation("com.louiscad.splitties:splitties-views-dsl-coordinatorlayout:$splitties_version")