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. Problem with Ecplise android plugin install

Hello,

I'm running Eclipse Ganymede Version: 3.4.0 Build id: I20080617-2000,
under Linux OpenSuse 11.1 (KDE).

I've installed Eclipse with from OpenSuse Open source repository. To
achieve Android SDK installation, I tried to follow the official
tutorial: http://developer.android.com/sdk/1.5_r3/installing.html.

1 ) I've downloaded the android SDK :
http://developer.android.com/sdk/download.html?v=android-sdk-linux_x86-1.5_r3.zip

2 ) I unzipped the Androis SDK in the directory:

/home/username/workspace/android-sdk-linux_x86-1.5_r3

3 ) I've edited .bashrc  : /home/username/.bashrc:

Adding the PATH variable:

test -s ~/.alias && . ~/.alias || true
export PATH=${PATH}:/home/username/workspace/android-sdk-
linux_x86-1.5_r3/tools

4 ) After reboot, I try to use (under Eclipse) Help > Software
Updates:

I got the error messsage "Cannot launch the Update UI.This
installation has not been configured properly for Software Updates.",
so after a bit of googling I follow edited the ecplise prefrences
(under Window > Preferences > General Capabilities) and check the
"classic update" box.

New entry (also called Software Updates) appeared in my "Help" menu,
giving access to sub-menus :

- Find and install
- Manage Configuration

5 ) I choosed "Find and install" > Search for new features to install

Name: Android SDK Plugin
URL: https://dl-ssl.google.com/android/eclipse/

6 ) After validation, The update showed features to install list :

Android SDK Plugin
-- Developer tools
------ Android development Tools 0.9.1.v200905011822-1621
------ Android DDMS 0.9.1.v200905011822-1621

When I selected all features I got an error message :

Current configuration contains errors that are not corrected by the
requested operation and more errors would be introduced. See details
for more information.
  ----- Current configuration problems -----
    Resulting configuration does not contain the platform.
  ----- Configuration problems after the operation -----
    Resulting configuration does not contain the platform.
    Android Development Tools (0.9.1.v200905011822-1621) requires plug-
in "org.eclipse.gef".

I also tried the "http" link instead of "https" but the problem
doesn't seem to be related to network connexion or protocol.

Any Ideas ? Thanks

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

2. Detecting sensor manager left and right shakes

Hi Guys,

My application requires to identify if the user has done a shake
towards the left or if he has done a shake towards the right.

How do i go about implementing this?

I have tried the sensor manager listener where in i am able to
identify a general shake event, but im not able to identify if its a
left or a right shake..

Regards,
R.Karthik
--~--~---------~--~----~------------~-------~--~----~

3. programatically detect foreground application/ screen?

4. How to launch VideoCamera Activity and then read tge file created?

5. Location object bad results

6. problem animating view objects

7. how to pass an Object from one activity to another.