Customize Spinner

by Ajay » Wed, 21 Apr 2010 18:47:55 GMT


Sponsored Links
 Hi,
   I want to customize the spinner behavior a little bit. I want to
add a couple of buttons at the end of the drop down menu that is
displayed when the user selects the control. Any idea how this could
be done?

Thank you,
AJ

--



Customize Spinner

by Tim » Wed, 21 Apr 2010 19:03:40 GMT


 


Clone the spinner code in your project, then modify it.

By the way, why is the drop-down widget called Spinner, and the
spinner widget called NumberPicker? Confusing!

--


Sponsored Links


Customize Spinner

by Ajay » Wed, 21 Apr 2010 20:36:10 GMT


 Is there a simpler way or standard widget that I could use?

Thank you,
AJ





>



Customize Spinner

by Mark Murphy » Wed, 21 Apr 2010 20:43:31 GMT


 


Write your own Dialog (or a Dialog-themed Activity) to look how you
want. Make a "Spinner" out of TextViews and ImageButtons. When they
click the ImageButton, display the Dialog or Activity for the user
interaction.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

_The Busy Coder's Guide to Android Development_ Version 3.0
Available!

--



Other Threads

1. Dialog Survival Over Configuration Change

Flipping between landscape and portrait is causing me a problem with
dialogs that are active at the time of config change.  The dialogs
survive (which I think is good), but I have the problem that some of
my dialogs contain dynamic content which would need to be refreshed in
the dialog views.  All that content disappears from the dialog views
after the config change.

I thought it would be easier to do a dismissDialog() on restoration in
onCreate(), letting the user press the button that shows the dialog.
I successfully save and recover the dialog id, but when I attempt to
dismissDialog(id) I get an IllegalArgumentException: no dialog with id
1 was ever shown via Activity$showDialog.

Ok, so that doesn't work, and I still have that messed up dialog up on
the screen that I want to get rid of.  How can I do that?  Are there
any other reasonable alternatives?  Thanks.
--~--~---------~--~----~------------~-------~--~----~

2. Where do donations end and payments begin.

I've been told that CashLog which is available via Market will reduce it's
functionality to only running on "odd days" unless a "donation" is made via
the authors web site.

Doesn't this sound more like a payment for the app than a donation?, Isn't
this against Market T&Cs which prevent developers charging for apps which
they got for free?, Isn't it also against the T&Cs to take payments outside
of Market for an app?

This also begs the question of is this a common practice?

Al.

---

* Written an Android App? - List it at http://andappstore.com/ *

======
Funky Android Limited is registered in England & Wales with the 
company number  6741909. The registered head office is Kemp House, 
152-160 City Road, London,  EC1V 2NX, UK. 

The views expressed in this email are those of the author and not 
necessarily those of Funky Android Limited, it's associates, or it's 
subsidiaries. 



--~--~---------~--~----~------------~-------~--~----~

3. Bitmap and pixel access

4. Timer Help (Time Stamp my code)

5. Samsung I7500 Media Capabilities

6. Fwd: Please unsubscribe joesensp...@gmail.com Was: Fwd: Android 1.5 SDK now available (Action Required) (Action Required)

7. Parsing &#xx; characters in XML