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

Android: Add solid app background theme support

    Details

      Description

      Summary:
      Many of Google's apps use a theme where the entire app background uses one solid color. That is the top status bar, action bar, and bottom navigation bar use the same color as the window's background color giving it one seamless solid appearance. We should offer a similar theme in Titanium for app developers to use or derive their own custom themes from.

      (See example screenshots down below.)

      Note:
      On Android 12, the splash screen the OS displays for the app show a solid background color from the top status bar to the bottom navigation bar. It would be good if the app's windows have a similar theme since it transitions nicely to it (but it's not required by Google).

      To-Do:
      Create the following themes. Note the post-fixed ".Solid" in the theme names.

      • Theme.Titanium.Dark.Solid
      • Theme.Titanium.Dark.Solid.NoTitleBar
      • Theme.Titanium.Dark.Solid.Fullscreen
      • Theme.Titanium.Light.Solid
      • Theme.Titanium.Light.Solid.NoTitleBar
      • Theme.Titanium.Light.Solid.Fullscreen
      • Theme.Titanium.DayNight.Solid
      • Theme.Titanium.DayNight.Solid.NoTitleBar
      • Theme.Titanium.DayNight.Solid.Fullscreen

      We should change the default theme Titanium applies to the app...

      • From: Theme.Titanium.DayNight
      • To: Theme.Titanium.DayNight.Solid

      Android 8.0 and older does not support the windowLightNavigationBar attribute. So, we'll have to show a black navigation bar on older Android OS versions. Google does the same in their own apps.

      Examples:

      Android 12 - Window - Light Theme (Old) Android 12 - Window - Light Theme (Solid)
      Android 12 - Window - Dark Theme (Old) Android 12 - Window - Dark Theme (Solid)
      Android 12 - TabGroup Top - Light Theme (Old) Android 12 - TabGroup Top - Light Theme (Solid)
      Android 12 - TabGroup Top - Dark Theme (Old) Android 12 - TabGroup Top - Dark Theme (Solid)
      Android 12 - TabGroup Bottom - Light Theme (Old) Android 12 - TabGroup Bottom - Light Theme (Solid)
      Android 12 - TabGroup Bottom - Dark Theme (Old) Android 12 - TabGroup Bottom - Dark Theme (Solid)

        Attachments

          Activity

            People

            • Assignee:
              jquick Joshua Quick
              Reporter:
              jquick Joshua Quick
              Reviewer:
              Gary Mathews
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration