Details
Description
When you use a NoTitleBar theme for the application, it is impossible to use a TabGroup anywhere in the application, because it requires an ActionBar:
1. Create default classic project (which has a TabGroup)
2. In tiapp.xml select a NoTitleBar theme:
<android xmlns:android="http://schemas.android.com/apk/res/android">
|
<manifest>
|
<application theme="@style/Theme.AppCompat.NoTitleBar" />
|
</manifest>
|
</android>
|
3. Run the project and see that the screen is empty (as in screenshot) and logs show:
[ERROR] TabGroupProxy: (main) [362,362] ActionBar not available for TabGroup
|
Solution
We should support the theme property we have for Ti.UI.Window so you can select a theme that has a TitleBar when you create a TabGroup in an application that uses a NoTitleBar theme.
Workaround
On all other windows, use the theme property to select a NoTitleBar theme.
Attachments
Issue Links
- duplicates
-
TIMOB-23271 Android: ActionBar not available for TabGroup
-
- Closed
-
- is duplicated by
-
TIMOB-23271 Android: ActionBar not available for TabGroup
-
- Closed
-
- relates to
-
TIMOB-26354 Android: Refactor TabGroup and introduce new style
-
- Closed
-
-
TIMOB-26354 Android: Refactor TabGroup and introduce new style
-
- Closed
-