Android - Activity that does not fill the parent screen

后端 未结 2 1535
自闭症患者
自闭症患者 2020-12-08 17:12

Any idea why this doesn\'t create an activity that looks like a popup instead of an activity that completely fills the screen?

 

        
2条回答
  •  攒了一身酷
    2020-12-08 18:05

    You must set your Activity's window to be floating. You can do this either by giving your activity the Dialog style defined by Android (android:style/Theme.Dialog), or define your own style, like this:

    
    

    Then set the style on your activity in the application's Manifest.

提交回复
热议问题