8000 New Kotlin DSL by chrisbanes · Pull Request #92 · chrisbanes/insetter · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.
8000

New Kotlin DSL #92

Merged
merged 6 commits into from
Feb 3, 2021
Merged

New Kotlin DSL #92

merged 6 commits into from
Feb 3, 2021

Conversation

chrisbanes
Copy link
Owner
@chrisbanes chrisbanes commented Jan 24, 2021

Example:

view.applyInsetter {
    // Apply the navigation bar insets as padding
    type(navigationBars = true) {
        padding()
    }
    // Apply the status bar insets as margin
    type(statusBars = true) {
        margin()
    }
}

@chrisbanes chrisbanes marked this pull request as ready for review February 3, 2021 10:26
@chrisbanes chrisbanes merged commit ce37838 into main Feb 3, 2021
@chrisbanes chrisbanes deleted the cb/dsl branch February 3, 2021 10:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0