Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-19695

Android: TabGroup cannot use "NoTitleBar" themes

    Details

    • Story Points:
      8
    • Sprint:
      2019 Sprint 1

      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

        1. android_20151009-111248.png
          26 kB
          Fokke Zandbergen
        2. android_20151009-111406.png
          46 kB
          Fokke Zandbergen

          Issue Links

            Activity

              People

              • Assignee:
                ybanev Yordan Banev
                Reporter:
                fokkezb Fokke Zandbergen
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-20477
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code