Languages

Menu
Sites
Language
A widget(button) with badge in EFL

Is there a way to implement a button with a badge in EFL elementary, like "Message(20)", that means there are 20 new un-read message. The number 20 is changeable.

 

Responses

4 Replies
Sanjeev BA

https://developer.tizen.org/dev-guide/2.3.0/org.tizen.mobile.native.appprogramming/html/guide/ui/widgets_customization_guide.htm

colin Rao

Many Thanks! But this help doc can't solve my issue. It's great if there are some sample code. -_-

Alex Ashirov

Hi,

It seems that you just need to update button’s text using elm_object_part_text_set(). For example:

elm_object_part_text_set(button, "Message(20)");

colin Rao

Hi, thanks!

But what I need is more complex, the number style, position, .etc may be different with the normal button text.