Project: titanium
Issue TIMOB-19081: Android: Add Theme.AppCompat.NoTitleBar to default themes
Every android app we build includes a few [built-in themes|https://github.com/appcelerator/titanium_mobile/blob/master/android/templates/build/theme.xml]: * {{Theme.AppCompat.Fullscreen}} * {{Theme.AppCompat.Translucent}} * {{Theme.AppCompat.Translucent.NoTitleBar}} * {{Theme.AppCompat.Translucent.NoTitleBar.Fullscreen}} * {{Theme.Titanium}}, which extends either {{Theme.AppCompat}} directly or {{Theme.AppCompat.Fullscreen}} depending on the {{}} setting in {{tiapp.xml}}. Strangely enough, it does not include a theme that would cover one of the most common use cases: hiding the Action Bar. Our [guide|http://docs.appcelerator.com/platform/latest/#!/guide/Android_Action_Bar-section-36735509_AndroidActionBar-HidingtheActionBar] explains how to do this using a custom theme, while it could be much simpeler if only we would include one by default. via *tiapp.xml* {code:xml} {code} or per window: {code:javascript} Ti.UI.createWindow({ theme: "Theme.AppCompat.NoTitleBar" }).open(); {code} Ideally, the new themes would follow the same naming convention as the Translucent ones: {code:xml}	{code} As you can see the existing {{Theme.AppCompat.Fullscreen}} theme can inherit the new {{Theme.AppCompat.NoTitleBar}} so that it is still available under the existing name. With these new themes in place we could also restore the {{}} and {{ elements in {{tiapp.xml}}. This would select the {{Theme.AppCompat.NoTitleBar}} for {{}} or {{Theme.AppCompat.NoTitleBar.FullScreen}} theme if {{}} is also true. The attached test app shows how these new themes would work, by adding them via a custom theme.
Story points: 3