Last active
April 14, 2023 19:12
-
-
Save ozgurg/0dfbabc2adac115c84fa8cf861e1fbb7 to your computer and use it in GitHub Desktop.
Android Material 3 Full Screen Dialog Style (Dark + Light Theme)
This file contains 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
class FullScreenDialogFragment : DialogFragment() { | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
setStyle(STYLE_NO_TITLE, R.style.Theme_App_FullScreenDialog) | |
} | |
} |
This file contains 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="Theme.App.FullScreenDialog" parent="Theme.App"> | |
<item name="android:windowIsFloating">false</item> | |
<item name="android:windowFullscreen">false</item> | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment