I need to show a Label with emoticons included already in the blackbery interface, with flags, etc.
Asked
Active
Viewed 758 times
1 Answers
1
There is no such built-in functionality.
With net available you can use BrowserField or WebBitmapField.
Otherwise you can use local resources + BitmapField. I wouldn't advice to use LabelField with custom drawing, just add simple LabelField before or after BitmapField with emoicon.
UPDATE: See alternative answer at Blackberry: Emoticons in Chat Application

Community
- 1
- 1

Maksym Gontar
- 22,765
- 10
- 78
- 114
-
sorry i can not give you karma.... i only have 11 on my reputation and i need 15 :) – timoto May 03 '10 at 21:39
-
thats OK, you can always came again ;) ! – Maksym Gontar May 04 '10 at 05:03
-
The solution won't work if the emoticon is in the middle of the text... in which case Timoto will need to derive a custom LabelField – ADB May 04 '10 at 22:47
-
it's obvious you'll have to split text into 2 LabelFields, which will be better for layout, more simple and bugfree – Maksym Gontar May 05 '10 at 04:33
-
2I have the same requirement as timoto. The LabelField/BitmapField/LabelField mechanism also has shortcomings when it comes to word wrap. I solved this by tokenizing the text into words, and then using a FlowFieldManager to put words and images together in a paragraph-like view. However, this is slow, doesn't work for right-to-left languages, and also doesn't work for text input. It's pretty much a hack, whereas overriding the paint and layout methods of TextField would do everything nicely and efficiently - unfortunately it is not possible to do that. – Michael Donohue Oct 06 '10 at 21:04
-
1@Michael it shouldn't be so slow if you split text only in two cases: when image should be placed and on newline. using TextEditField gives you text input. Sure there will be other issues, but they can be solved too. I am agree that overriding paint and layout would be a best solution, but it's so buggy! – Maksym Gontar Oct 12 '10 at 10:06