Skip to content

Latest commit

 

History

History
 
 

views-dsl-coordinatorlayout

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Views DSL CoordinatorLayout

CoordinatorLayout extension of Views DSL.

Supported platforms: Android.

Table of contents

Functions to instantiate a CoordinatorLayout

Instead of using view(::CoordinatorLayout, …) { … }, you can use coordinatorLayout(…) { … }.

CoordinatorLayout extensions

defaultLParams

This extension has default width and height set to wrapContent and an optional gravity parameter.

appBarLParams

Has a matchParent width. Use it when adding an AppBarLayout or a similar View that takes the app bar role.

CoordinatorLayout.LayoutParams extensions

anchorTo

Anchors the passed View with the specified gravity, setting a generated id if it had none.

Download

implementation("com.louiscad.splitties:splitties-views-dsl-coordinatorlayout:$splitties_version")