Programmatically show Toolbar after hidden by scrolling (Android Design Library)

前端 未结 3 712
遥遥无期
遥遥无期 2021-01-04 08:02

I have the following layout: a drawer, with the main content view having a AppBarLayout, RecyclerView and a TextView. When I scroll the recycler, the toolbar is correctly hi

3条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-04 08:35

    U could either do toolbar.transitionY(int y); on the on scroll method or use visibility gone and u have to add an header in the list view or recycler view with the size of the toolbar. So that the whole list still shows

提交回复
热议问题