Does anyone know of a way to hide the title bar in Android Studio previews (that's the title bar on the device previews, not the title bar of Android Studio)? I am writing a full screen app and using virtually all the screen but the preview insists on showing the title bar which makes it very difficult to scale things correctly. Any ideas?
I have included my theme to show I am actually asking for the title to be hidden, JIC I have done something wrong, like I normally do ;)
<style name="AppTheme" parent="android:Theme.Holo.Light">
<item name="android:windowFullscreen">true</item>
<item name="android:windowNoTitle">true</item>
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:buttonStyle">@style/defaultButtonStyle</item>
<item name="android:textSize">@dimen/fontSize</item>
</style>
Thanks in advance, as always.
PS: How do you do strikethrough / bold etc in code blocks? I don;t seem to be able to get it to work...
In the preview window there is a button (for me a symbol of a half filled circle, right next to the rotate screen button) that allows you to select a theme.
Go to All > NoTitleBar.FullScreen
for a complete full-screen preview.