Skip to content

Instantly share code, notes, and snippets.

@DavidTPate
Created April 25, 2013 19:21
Show Gist options
  • Select an option

  • Save DavidTPate/5462374 to your computer and use it in GitHub Desktop.

Select an option

Save DavidTPate/5462374 to your computer and use it in GitHub Desktop.
Updated themes.xml for AndroidMenuDrawer sample to reduce overdraw and set the window background to null.
<resources>
<style name="SampleBase" parent="@android:style/Theme.Light" />
<style name="SampleTheme" parent="SampleBase">
<item name="android:windowBackground">@null</item>
<item name="menuDrawerStyle">@style/MenuDrawerStyle</item>
</style>
<style name="SampleTheme.RightDrawer" parent="SampleBase">
<item name="menuDrawerStyle">@style/MenuDrawerStyle.Right</item>
</style>
<style name="SampleTheme.TopDrawer" parent="SampleBase">
<item name="menuDrawerStyle">@style/MenuDrawerStyle.Top</item>
</style>
<style name="SampleTheme.BottomDrawer" parent="SampleBase">
<item name="menuDrawerStyle">@style/MenuDrawerStyle.Bottom</item>
</style>
</resources>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment