4

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.

Ben S
  • 68,394
  • 30
  • 171
  • 212

1 Answers1

9

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
  • 68,394
  • 30
  • 171
  • 212