Skip to content

Instantly share code, notes, and snippets.

@zivkesten
Last active May 30, 2022 15:05
Show Gist options
  • Save zivkesten/ceffb9f74d580d33aca5a6b9a01c148d to your computer and use it in GitHub Desktop.
Save zivkesten/ceffb9f74d580d33aca5a6b9a01c148d to your computer and use it in GitHub Desktop.
Compose bottom sheet activity style file
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.Transparent" parent="Theme.AppCompat">
<!-- We want the activity to be transparent -->
<item name="android:windowBackground">@android:color/transparent</item>
<!-- Make sure there is no action bar/title -->
<item name="android:windowNoTitle">true</item>
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
<!-- Remove default animations to have full control -->
<item name="android:windowAnimationStyle">@null</item>
</style>
</resources>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment