Uploaded image for project: 'Appcelerator - INBOX'
  1. Appcelerator - INBOX
  2. AC-2486

Android Theme.Holo don't dysplay splash screens

    Details

      Description

      Setting the application manifest to Holo themes make the splash screens not work, doesn't matter where you put it.

      Steps:

      1 - Add the manifest part to your tiapp.xml
      2 - Use one android visual component like the one on the code bellow
      3 - Compile to an android device

      Adicional notes/Questions:
      1 - Not setting this theme will make that the default theme is always the 2.2 versions theme

      2 - Why there isn't a way to just set the theme on tiapp.xml without using android manifest?

      Related Q&A
      Android theme not properly set
      How do you build your app with Holo theme?

      Testing code bellow:

      app.js

      var parentView = Ti.UI.createWindow();
       
      // Create a ProgressBar.
      var aProgressBar = Ti.UI.createProgressBar({
      	min : 0,
      	max : 10,
      	value : 0,
      	width : '200dp',
      	height : '70dp',
      	color : '#444',
      	message : 'Measuring Progress',
      	font : {fontSize:14, fontWeight:'bold'},
      	style : Ti.UI.iPhone.ProgressBarStyle.PLAIN,
      	top : 60
      });
       
      // Add to the parent view.
      parentView.add(aProgressBar);
      aProgressBar.show();
       
      // Sample timer to demonstrate ProgressBar functionality.
      var val = 0;
      var interval = setInterval(function() {
      	if (val <= 10) {
      		aProgressBar.value = val;
      		aProgressBar.message = 'Progress: ' + val + ' of 10';
      		val++;
      	} else {
      		aProgressBar.message = 'Progress complete!';
      		clearInterval(interval);
      	}
      }, 500);
       
      parentView.open();
      

      tiapp.xml

      .....
          <android xmlns:android="http://schemas.android.com/apk/res/android">
          	<manifest android:installLocation="auto" android:versionCode="1" android:versionName="1.0">
          		<application android:theme="@android:style/Theme.Holo.Light">
      				<activity android:name=".TesteActivity" android:theme="@android:style/Theme.Holo.Light">
      					<intent-filter>
      						<action android:name="android.intent.action.MAIN"/>
      						<category android:name="android.intent.category.LAUNCHER"/>
      					</intent-filter>
      				</activity>				
      			</application>
       
              </manifest>       	
          </android> 
      ...
      <sdk-version>3.1.0.GA</sdk-version>
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ragrawal Ritu Agrawal
                Reporter:
                cleison.ezoom Ezoom Agency
              • Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Integration