Skip to content

Instantly share code, notes, and snippets.

@ozgurg
Last active April 14, 2023 19:12
Show Gist options
  • Save ozgurg/0dfbabc2adac115c84fa8cf861e1fbb7 to your computer and use it in GitHub Desktop.
Save ozgurg/0dfbabc2adac115c84fa8cf861e1fbb7 to your computer and use it in GitHub Desktop.
Android Material 3 Full Screen Dialog Style (Dark + Light Theme)
class FullScreenDialogFragment : DialogFragment() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setStyle(STYLE_NO_TITLE, R.style.Theme_App_FullScreenDialog)
}
}
<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