``` appBarLayout { collapsingToolbarLayout(R....
# anko
s
Copy code
appBarLayout {

    collapsingToolbarLayout(R.style.AppTheme_PopupOverlay) {
        setContentScrimColor(color(R.color.colorPrimary))

        toolbar(R.style.AppTheme_PopupOverlay) {
            setSupportActionBar(this)
            supportActionBar?.setDisplayHomeAsUpEnabled(true)
        }.collapseLayoutParams(width = matchParent, height = actionBarSize()) {
            collapseMode = COLLAPSE_MODE_PIN
        }

    }.lparams(width = matchParent, height = matchParent) {
        scrollFlags = SCROLL_FLAG_SCROLL or SCROLL_FLAG_EXIT_UNTIL_COLLAPSED
    }

}.lparams(width = matchParent, height = dip(200))