How to style a button to look like a spinner

by Steven » Tue, 14 Dec 2010 04:52:26 GMT

Sponsored Links
 I want to create a button that "looks" like a spinner element using
the declarative XML layout approach.

This question was asked in Oct 2009, but I could not find a direct
answer to the following post:

Other Threads

1. How to half-screen window

I working for Multiple Window Control.
I set window's rect is 50, 50, 200, 200. The window can be show, but
there is one issue:
 Window is right, but it background is black full screen.

  So how to show previous window, not use Transpant?
  Where control default window's background? WindowManagerService or


2. race condition? Window already focused, ignoring focus gain of...


I am programmatically calling into ViewDebug through ViewServer with a
DUMP command.  My code does this over and over for a while, on the
order of 100 times over 3-4 minutes, then it hangs.

I have put log statements into ViewServer and ViewDebug, so I see that
when it hangs: ViewServer calls viewServerWindowCommand(), but
ViewDebug.dispatchCommand() does not get called.  So execution is
getting stuck somewhere in between.

I have a few clues.  First when this happens, DDMS seems to frequently
(always?) be reporting the message:

Window already focused, ignoring focus gain of:$stub$pr...@...

This message is displayed 16 times in my current DDMS log, so it's not
unusual, but this is the only time it is displayed *after*
viewServerWindowCommand() is called and *before*
ViewServer.dispatchCommand().  That's why I'm a little suspicious
there might be a race condition here.

Second, the phone application for which my code is fetching DUMPs is
the Calculator (  This hang seems to
frequently (possibly always) happen after the calculator's menu
"Advanced Panel" is clicked.  The advanced panel is displayed on the
emulator/phone and the code is trying to DUMP this new view -- that's
when it hangs.  It is possible that the DUMP request could happen
while the Advanced Panel display is being rendered.  Note that the
code successfully goes through this same click-Advanced-panel then
DUMP sequence multiple times -- the hang does not always happen under
these circumstances.  But when the hang happens, it seems to mostly be
in this case.

Any help preventing this hang would be appreciated.


3. How Much Money Does a Billion iPhone Apps Get You? Not That Much

4. sharing database

5. Accessing rild socket

6. broadcast data to other application

7. How to start the intent contacts with a query