New Android Design Library bug with AppBarLayout and Toolbar

前端 未结 5 1810
被撕碎了的回忆
被撕碎了的回忆 2020-12-02 18:52

I am using the new Android Design Library based on this example chrisbanes/cheesesquare in github and here

I have run the example and I am having problems with Toolb

5条回答
  •  渐次进展
    2020-12-02 19:17

    I had same problem, my toolbar was displaying wrong on API level greater than 21. I was using android.support.v7.widget.Toolbar as supportActionBar() and below content is in fragment, see pictures: on aplication start, toolbar is displaying wrong and when i colapse android.support.design.widget.CollapsingToolbarLayout, the picture is not hidden completely

    I resolved this when i added android:fitsSystemWindows="true" attribute to the root element of view where Toolbar is located.

    Now: toolbar is displaying normal and picture is hidden completely

提交回复
热议问题