Why can't change toolbar's scrollFlags to SCROLL_FLAG_SCROLL programmatically?

后端 未结 0 1407
别跟我提以往
别跟我提以往 2021-01-07 23:10

This works fine:

val toolbarParams = activity?.toolbar?.layoutParams as AppBarLayout.LayoutParams
        toolbarParams.scrollFlags = 0
              


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题