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

Android: Cannot apply theme with "windowTranslucentNavigation" or "windowTranslucentStatus" to splash screen as of 7.5.0

    Details

    • Story Points:
      5

      Description

      Summary:
      As of Titanium 7.5.0, a custom theme set up with windowTranslucentNavigation or windowTranslucentStatus will be undone when applied to the splash screen activity.

      Steps to reproduce:

      1. Create a Classic app named "SplashTest".
      2. Set up a blank "app.js" as shown below.
      3. Add the below "my_themes.xml" file under folder: ./platform/android/res/values
      4. Set up "tiapp.xml" with the below.
      5. Build and run on Android.
      6. On app startup, notice that top status bar and bottom navigation bar are briefly displayed semi-transparent... but then become opaque. (The bug is they're not supposed to turn opaque.)
      7. Notice that the following warning gets logged.
        You cannot use a translucent status bar or navigation bar unless you set the window's 'extendSafeArea' property to true.

      app.js

      // Leave the "app.js" script blank.
      

      ./platform/android/res/values/my_themes.xml

      <?xml version="1.0" encoding="UTF-8"?>
      <resources>
      	<style name="MyTheme" parent="@style/Theme.Titanium">
      		<item name="android:windowTranslucentNavigation">true</item>
      		<item name="android:windowTranslucentStatus">true</item>
      	</style>
      </resources>
      

      tiapp.xml

      <ti:app xmlns:ti="http://ti.appcelerator.org">
      	<android xmlns:android="http://schemas.android.com/apk/res/android">
      		<manifest>
      			<application>
      				<activity android:name=".SplashtestActivity" android:theme="@style/MyTheme">
      					<intent-filter>
      						<action android:name="android.intent.action.MAIN"/>
      						<category android:name="android.intent.category.LAUNCHER"/>
      					</intent-filter>
      				</activity>
      			</application>
      		</manifest>
      	</android>
      </ti:app>
      

        Attachments

          Activity

            People

            • Assignee:
              ybanev Yordan Banev
              Reporter:
              jquick Joshua Quick
              Reviewer:
              Joshua Quick
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code