I am trying to add a clickable image button that will eventually switch screens. However i don’t know how to implement this, i’m unable to make images appear on the screen. While following the tutorial at:
When i run the programme without adding the image the “Click Me!” text is centered in the button, however once i add the icon, the text is offset, could this be a sign that something was added to the button? My only theory is that the image file path is wrong. If i simply enter “” , into the file path parameter the same offset effect occurs.
The basicui.png file is located both in the src file and parent file, BasicUI. How can i ensure the image is loaded? is there a better, more accurate, way to specify the file path?
Furthermore am i correct in thinking i can add an image to the box itself and implement a “clicked” smart callback to it to make an image button?
Adding an image button/ images in general
I am trying to add a clickable image button that will eventually switch screens. However i don’t know how to implement this, i’m unable to make images appear on the screen. While following the tutorial at:
https://developer.tizen.org/ko/development/ui-practices/native-application/efl/ui-components/wearable-ui-components/button
i have tried adding an icon to a button. This is a segment of my code:
When i run the programme without adding the image the “Click Me!” text is centered in the button, however once i add the icon, the text is offset, could this be a sign that something was added to the button? My only theory is that the image file path is wrong. If i simply enter “” , into the file path parameter the same offset effect occurs.
The basicui.png file is located both in the src file and parent file, BasicUI. How can i ensure the image is loaded? is there a better, more accurate, way to specify the file path?
Furthermore am i correct in thinking i can add an image to the box itself and implement a “clicked” smart callback to it to make an image button?
Any help is greatly appreciated.
BY
16 Apr 2025
Tizen Studio
BY
04 Nov 2024
Tizen Studio
BY
02 Apr 2024
Tizen Studio