Why is my overflow dropdown menu on top of the actionbar?

后端 未结 4 2075
误落风尘
误落风尘 2020-12-01 19:23

\"dropdown

By default isn\'t it supposed to be under the actionbar? So what am I doi

4条回答
  •  旧巷少年郎
    2020-12-01 20:13

    According to the Material Design specifications, the overflow menu should display on top of the action bar:

    A menu is a temporary sheet of paper that always overlaps the app bar, rather than behaving as an extension of the app bar.

    enter image description here

    This is the default behavior for Android Lollipop applications as well as any applications that use the AppCompat v7 support library.

提交回复
热议问题