Skip to content

Instantly share code, notes, and snippets.

@NezSpencer
Created March 4, 2020 10:58
Show Gist options
  • Save NezSpencer/583c07edbace0116a38ce5a5ead8c8cb to your computer and use it in GitHub Desktop.
Save NezSpencer/583c07edbace0116a38ce5a5ead8c8cb to your computer and use it in GitHub Desktop.
DialogFragment style for custom width and height
<style name="KycDialogStyle" parent="android:Theme.Dialog">
<item name="android:windowBackground">@drawable/white_3dp_corner_radius</item>
<item name="android:windowAnimationStyle">@null</item>
<item name="android:backgroundDimEnabled">false</item>
<item name="android:windowMinWidthMajor">100%</item>
<item name="android:windowMinWidthMinor">90%</item>
<item name="android:windowNoTitle">true</item>
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment