Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25469] Android: Custom theme not applying when background color is transparent

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2017-12-15T17:50:02.000+0000
Affected Version/sRelease 6.2.2
Fix Version/sRelease 7.0.1
ComponentsAndroid
Labelsmerge-7.0.1
ReporterAminul Islam
AssigneeGary Mathews
Created2017-11-01T17:56:31.000+0000
Updated2018-04-18T10:49:29.000+0000

Description

Hi, Custom theme not applying when the background color is transparent.Testing in android with the latest SDK and found that customs theme properties are not getting applied. Attached the project (AppcleratorBug) with custom_theme.xml having the below properties. *android:textAllCaps* *android:windowActionBar*
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <style name="Theme.NoActionBar" parent="@style/Theme.AppCompat">
        <item name="android:textAllCaps">false</item>
        <item name="android:windowActionBar">false</item>
        <item name="android:windowNoTitle">true</item>
		<!-- AppCompat Compatibility -->
		<item name="windowActionBar">false</item>
		<item name="windowNoTitle">true</item>
    </style>
</resources> 
In the tss when we apply the background color 'transparent' the theme properties are not getting applied.
"#win" : {
	backgroundColor : "red" // worked
        backgroundColor : "#00FFFFFF" // not worked 

}
Tested for all other colors and works fine.

Attachments

FileDateSize
AppceleratorBug.zip2017-11-01T18:00:43.000+00009383256
red.jpg2017-11-01T17:58:20.000+000045939
transparent.jpg2017-11-01T17:58:20.000+000049676

Comments

  1. Gary Mathews 2017-11-01

    master: https://github.com/appcelerator/titanium_mobile/pull/9581
  2. Lokesh Choudhary 2017-12-11

    [~gmathews], Please provide a backport for this ticket.
  3. Lokesh Choudhary 2017-12-13

    Master PR merged.
  4. Gary Mathews 2017-12-13

    7_0_X: https://github.com/appcelerator/titanium_mobile/pull/9688
  5. Lokesh Choudhary 2017-12-14

    FR passed for backport PR. Waiting for merge to get enabled.
  6. Lokesh Choudhary 2017-12-15

    Backport PR merged.
  7. Lokesh Choudhary 2017-12-19

    Verified the fix with SDK 7.0.1.v20171218104141 & 7.1.0.v20171218101353. Closing. Studio Ver: 5.0.0.201712081732 SDK Ver: 7.0.1.v20171218104141, 7.1.0.v20171218101353 OS Ver: 10.12.3 Xcode Ver: Xcode 8.3.3 Appc NPM: 4.2.11 Appc CLI: 7.0.1-master.5 Daemon Ver: 1.0.1 Ti CLI Ver: 5.0.14 Alloy Ver: 1.10.10 Node Ver: 8.9.1 Java Ver: 1.8.0_101 Devices: ⇨ google Pixel — Android 7.1.1 ⇨ google Nexus 5 — Android 6.0.1

JSON Source