Inflating AppBarLayout with Toolbar + TabLayout

前端 未结 7 1045
隐瞒了意图╮
隐瞒了意图╮ 2021-01-30 23:21

I currently have a DrawerLayout in my main.xml. There\'s a Toolbar wrapped in an AppBarLayout, and then a simple LinearLayout to swap out fragments.

One of the fragment

7条回答
  •  再見小時候
    2021-01-30 23:41

    The solution is simple in the XML. Just add the following code to your AppBarLayout: app:elevation="0dp". So the AppBarLayout should look like this:

    
    

提交回复
热议问题