[TIMOB-16655] Android: Add disabledColor property
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Low |
Status | Reopened |
Resolution | Unresolved |
Affected Version/s | Release 3.2.2 |
Fix Version/s | n/a |
Components | Android |
Labels | andoid, theme, tss |
Reporter | Gianpaolo |
Assignee | Unknown |
Created | 2014-03-14T10:27:47.000+0000 |
Updated | 2019-04-24T13:55:56.000+0000 |
Description
Android don't have this basilar function.
Workaround with "addEventListener('click'...".
Is useful function.
Test with:
TiSDK 3.2.1.GA
Please clarify which UI control you need this property on. I am assuming it is Ti.UI.Button but want to confirm.
oh I'm sorry, but yes, it is Ti.UI.Button, but I think we can use in every object that has properties backgroundDisabledColor. And thanks for your reply
This functionality already exists on Android platform with another property - backgroundDisabledColor. Please refer to TIMOB-15374 for detailed discussion on this topic.
Wait, I'm not referring to the property backgroundDisabledColor, this change the background color of the object. i talk about the Color property, the Color property change the text content color of object. when i write this: var enabled = z; var x = Ti.UI.createButton({ backgroundColor:"red", color:"brown", backgroundDisabledColor:"#000", disabledColor:"#777", enabled:enabled }) I expect that when the button is disabled it has a black background and gray text. When it is active has a red background and brown text. sorry for my bad English.
Moving this feature request to engineering for further evaluation. Adding this property would bring the behavior at par with iOS platform. Another property that is not available for Android platform is selectedColor.
I think this one is a must have for parity.