Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
New Developer
Posts: 31
Registered: ‎02-01-2014
My Device: Q10 SQN100-3
My Carrier: Factory Unlocked
Accepted Solution

Speech bubbles

Hey,

 

Is there a way to make BBM/SMS/Talk style speech bubbles without having to reimplement everything myself? I would prefer a seamless integration for my app rather than a custom style.

 

Thanks,

Daniel

Developer
Posts: 386
Registered: ‎07-20-2012
My Device: Blackberry Z10 (White), BlackBerry Dev Alpha C
My Carrier: O2 UK

Re: Speech bubbles

Hi,

 

I remember there was a way to do this with BBUI.js (for BlackBerry Webworks); check out Github Smiley Happy - https://github.com/blackberry/bbUI.js/

New Developer
Posts: 31
Registered: ‎02-01-2014
My Device: Q10 SQN100-3
My Carrier: Factory Unlocked

Re: Speech bubbles

Hey,

 

You are right:

 

https://github.com/blackberry/bbUI.js/blob/master/samples/bb10/bbmBubbles.htm

 

Thanks! Time to learn about making webworks apps now haha Smiley Tongue

 

Regards,

Daniel

Developer
Posts: 144
Registered: ‎12-18-2010
My Device: Limited Edition Z10 & Blackberry Playbook
My Carrier: Rogers Wireless

Re: Speech bubbles

If you are already familiar with C++ and/or QML this should be easily accomplished using a nine-sliced image of the speech bubble as the background of a container, and then use a TextArea for the text.  The container should grow as the TextArea grows.  I have not tried this myself so there might be some thing that should be the basic implementation.

 

If your not familiar with nine-slicing see this: http://developer.blackberry.com/native/documentation/cascades/ui/image_resources/assets.html about half way down the page is the heading Nine-Slice scaling

 

Hope that helps.

Playbook Apps:
Touch Painter, LinkShrink

BB10 Apps:
NoteToSelf , LinkShrink
New Developer
Posts: 31
Registered: ‎02-01-2014
My Device: Q10 SQN100-3
My Carrier: Factory Unlocked

Re: Speech bubbles

Thank you, that will serve as a good QML tutorial, although I'll stick to the webworks one as that's exactly the same BBM/Google Talk speech bubble I'm looking for