views:

367

answers:

1

I'm writing a custom dialog window to display the status of a long operation, and would like to use the little timer icon (the little square clock on OS >= 4.6) that's used in the BB native dialogs.

How can I use this graphic within my dialog?

I'm already familiar with layout managers and such, I just don't know where the bitmap is, or if there's an API call to get the default theme icons like this.

+5  A: 

Under the Bitmap class there's an HOURGLASS constant defined that can be used with the getPredefinedBitmap() method.

Example:

Manager.add(new BitmapField(Bitmap.getPredefinedBitmap(Bitmap.HOURGLASS)));

This was pretty well hidden within the javadocs, so I figured I'd answer my own question in case anyone else needs to know.

Ben S
+1 helped me so thanks for answering your own question...
J.13.L