https://kotlinlang.org logo
#anko
Title
# anko
f

fboldog

03/02/2016, 8:24 PM
so, there setting collapseMode in CollapsingToolbarLayout child is not possible at the moment.
Copy code
collapsingToolbarLayout {
                    id = TOOLBAR_LAYOUT_ID
                    fitsSystemWindows = true

                    contentScrim = ColorDrawable(colorAttr(R.attr.colorPrimary))

                    toolbar(ThemeOverlay_AppCompat_Dark_ActionBar) {
                        id = TOOLBAR_ID
                        popupTheme = ThemeOverlay_AppCompat_Light
                    }.lparams(width = matchParent, height = dimenAttr(R.attr.actionBarSize)){
                        collapseMode = COLLAPSE_MODE_PIN
                    }
                }
2 Views