AdView and FloatingActionButton overlap while using CoordinatorLayout

前端 未结 2 1780
無奈伤痛
無奈伤痛 2021-02-05 17:43

After incorporating the new CoordinatorLayout in one of my layouts, I have an issue with Adviews overlapping with FloatingActionButton.

2条回答
  •  Happy的楠姐
    2021-02-05 18:27

    Probably not what you were looking for, but you can at least align the FloatingActionButton, like so

    
    
    
    

    As the CoordinatorLayout is a FrameLayout, you want to have the fab after the AdView, as

    Child views are drawn in a stack, with the most recently added child on top

提交回复
热议问题