[TIMOB-25469] Android: Custom theme not applying when background color is transparent
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-12-15T17:50:02.000+0000 |
Affected Version/s | Release 6.2.2 |
Fix Version/s | Release 7.0.1 |
Components | Android |
Labels | merge-7.0.1 |
Reporter | Aminul Islam |
Assignee | Gary Mathews |
Created | 2017-11-01T17:56:31.000+0000 |
Updated | 2018-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
File | Date | Size |
---|---|---|
AppceleratorBug.zip | 2017-11-01T18:00:43.000+0000 | 9383256 |
red.jpg | 2017-11-01T17:58:20.000+0000 | 45939 |
transparent.jpg | 2017-11-01T17:58:20.000+0000 | 49676 |
master: https://github.com/appcelerator/titanium_mobile/pull/9581
[~gmathews], Please provide a backport for this ticket.
Master PR merged.
7_0_X: https://github.com/appcelerator/titanium_mobile/pull/9688
FR passed for backport PR. Waiting for merge to get enabled.
Backport PR merged.
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