Created
March 18, 2021 10:11
-
-
Save tiiime/5f4aa1f811b59b9430ce57099d575ad8 to your computer and use it in GitHub Desktop.
fullscreen dialog
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
setStyle(STYLE_NORMAL, R.style.FullScreenDialogTheme) | |
} | |
... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
<style name="FullScreenDialogTheme" parent="android:Theme.Dialog"> | |
<item name="android:layout_width">match_parent</item> | |
<item name="android:layout_height">match_parent</item> | |
<item name="android:windowBackground">@drawable/black_mask_86</item> | |
<item name="android:windowNoTitle">true</item> | |
<item name="android:windowIsFloating">false</item> | |
</style> | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment