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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With