R rkxo Active Member Licensed User Longtime User Oct 9, 2019 #1 Hi, Is it possible to change the color of a statelistdrawable enabled drawable button for example created with the designer in runtime? Thanks
Hi, Is it possible to change the color of a statelistdrawable enabled drawable button for example created with the designer in runtime? Thanks
Erel B4X founder Staff member Licensed User Longtime User Oct 10, 2019 #2 No, however you can create a new one. It is not too complicated. Old example: StateListDrawable example Another option is to use SwiftButtons from XUI Views. You can change their colors by calling SetColors. Upvote 0
No, however you can create a new one. It is not too complicated. Old example: StateListDrawable example Another option is to use SwiftButtons from XUI Views. You can change their colors by calling SetColors.
R rkxo Active Member Licensed User Longtime User Oct 10, 2019 #4 Hi, I tried SwiftButtons, but the secondcolor parameter not is a statelist color how enabled, pressed or disabled. Only can set one statelist "enabled state", isn't it? It is used to create the shadow effect. Last edited: Oct 10, 2019 Upvote 0
Hi, I tried SwiftButtons, but the secondcolor parameter not is a statelist color how enabled, pressed or disabled. Only can set one statelist "enabled state", isn't it? It is used to create the shadow effect.
Erel B4X founder Staff member Licensed User Longtime User Oct 10, 2019 #5 The secondary color is the button "sides" color. You can probably use the ButtonUp and ButtonDown events to change the state colors if you like. Upvote 0
The secondary color is the button "sides" color. You can probably use the ButtonUp and ButtonDown events to change the state colors if you like.