How to create a transparent activity WITHOUT windowIsFloating

后端 未结 3 750
再見小時候
再見小時候 2021-01-31 10:47

windowIsFloating while a great one stop shop for creating Dialog styled UI\'s has many ---bugs--- quirks.

The one which I\'m battling right no

3条回答
  •  清酒与你
    2021-01-31 11:16

    Thanks to @PolamReddy who nudged me towards answer I wanted:

    The theme Theme.Translucent.NoTitleBar.Fullscreen and its ancestors contains all the attributes you need to create a translucent window. In order to get everything apart from windowIsFloating I went through the ancestor stack and pulled out the entire set of attributes:

     
    

    This style must be assigned to the Activity in the AndroidManifest.xml rather than the root view of a layout.

提交回复
热议问题