Languages

Menu
Sites
Language
click event changes color of the button by default

Hi,

I am using SDK 2.2 and when I click a button the color changes to black by default and comed back to original color. I don't want the color of the button to change on click which means it should retain it original color on click. Please suggest how to achive this?

 

Regards,

Nikhil

View Selected Answer

Responses

4 Replies
colin Rao

 Hi,

The new SDK version is 2.3 Rv2, suggest you to upgrade the SDK.

Regarding your question, you can try to override its default style. Below link should be helpful for you.

https://developer.tizen.org/documentation/guides/native-application/ui/ui-control/widget-preferences#customize

 

Nikhil Kumar

Hi,

I have to work on SDK 2.2 and con't upgrade to 2.3.

Now coming on to my question it is similar to this query asked in the below link.

https://developer.tizen.org/fr/forums/general-support/default-color-change-effect-on-click-button?langswitch=fr

I want the equivalent implementation of event.preventDefault() in native programming

 

Regards,

Nikhil

Marco Buettner

I dont know why you have to work with 2.2?

If you use Tizen WebFramework from 2.2 then your application will be rejected on Tizen Store - because 2.2 Web Framework isnt compatible to Tizen 2.3 and no longer supported

Mark as answer
Vikram

As your link, this solution is just for web app.

As I know, in native app, the color change action is in .edc program section. So, I think there isn't a way to prevent it in .c code, except to override the default action via .edc style.