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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Developer
Posts: 660
Registered: ‎10-08-2009
My Device: Bold 9900
My Carrier: Telus
Accepted Solution

ActivityIndicator size

[ Edited ]

Just wondering, does ActivityIndicator have preset size like they do in bbui.js?

 

I can't find any documentation on this so I have tested and found the max size to be 200px in width and height and if the size is increased any more, it just adds padding to the control.

 

Can someone help me please

 

Edit: 184px is the minimum for the large ActivityIndicator and there is a steep drop off from 183px

----------------------------------------------------------
Twitter: @gyubok
Developer
Posts: 889
Registered: ‎08-31-2009
My Device: 9530, 9630, 9800, 8530, 9900, 9810, 9930, PlayBook, Dev Alpha
My Carrier: Verizon

Re: ActivityIndicator size

ActivityIndicator always has one of three preset sizes (whichever is the largest that will fit in it's given space). If you need a larger one, you may want to try scalling the container...


Read my thoughts on BlackBerry Development at news.ebscer.com
Developer
Posts: 660
Registered: ‎10-08-2009
My Device: Bold 9900
My Carrier: Telus

Re: ActivityIndicator size

How do I force large preset size?

----------------------------------------------------------
Twitter: @gyubok
Developer
Posts: 889
Registered: ‎08-31-2009
My Device: 9530, 9630, 9800, 8530, 9900, 9810, 9930, PlayBook, Dev Alpha
My Carrier: Verizon

Re: ActivityIndicator size

Just give the ActivityIndicator a large enough preferredHeight and Width. My code is...

 

ActivityIndicator
    {
        id: loader
        preferredHeight: 500
        preferredWidth: 500
        verticalAlignment: VerticalAlignment.Center
        horizontalAlignment: HorizontalAlignment.Center
    }

 (although a size of 200 would probably be sufficient).


Read my thoughts on BlackBerry Development at news.ebscer.com
Highlighted
Developer
Posts: 660
Registered: ‎10-08-2009
My Device: Bold 9900
My Carrier: Telus

Re: ActivityIndicator size

The code you provided works fine for most cases but I find that if you are adding a label above or below the ActivityIndicator to describe event (i.e. "Loading Contacts"), providing 500px will add considerable amount of gap between the two controls. Ofcourse, you can decrease the preferredHeight and width but that's not a clean way to layout the two controls.

 

I just thought there would be a way to provide the size of the ActivityIndicator just like how we provide text sizes but I guess there isn't a way. Perhaps I should've been more clear on my initial question

 

Currently, a large ActivityIndicator is 184px height and width if anyone is interested. I don't like hardcoding dimensions but we have no choice and I don't have time to find out dimensions for medium or small ActivityMonitor

----------------------------------------------------------
Twitter: @gyubok