Android Question Color codes

Discussion in 'Android Questions' started by Paul Boyle, Apr 1, 2015.

  1. Paul Boyle

    Paul Boyle Member Licensed User

    Hi

    Anyone know ho to populate the color code for a spinnner background dropdown ?

    What integers represent which colors?

    Code:
    spinner.DropdownBackgroundColor(?)
    Many Thanks

    P.
     
  2. NJDude

    NJDude Expert Licensed User

    Like this:
    Code:
    Spinner.DropdownBackgroundColor = Colors.Red

    or

    Spinner.DropdownBackgroundColor = Colors.ARGB(50345020)
     
  3. mangojack

    mangojack Well-Known Member Licensed User

    This color chart might be useful .. MS Excel format
     

    Attached Files:

  4. Paul Boyle

    Paul Boyle Member Licensed User

    Thanks for that.

    I have 6 items on the spinner list.

    Code:
    spr_Level.Add("Select Level")
    For i = 1 to 5
        spr_Level.Add(
    "Level " & i)
    Next
    Everytime the spinner is shown I want the "Select Level" item to be in the spinner view. Cant seem to get it. Works first time, but if the back button is pressed and the spinner is selected again, it still has the old selection selected.
     
  5. DonManfred

    DonManfred Expert Licensed User

    See the properties and methods of the spinner in the documentation on how to set a specific item.
    Escpecially see this.
     
    thedesolatesoul likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice