Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Mobile Development
  3. Android
  4. What data type is this?

What data type is this?

Scheduled Pinned Locked Moved Android
data-structuresquestion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hansoctantan
    wrote on last edited by
    #1

    Hello everyone, 0xFFFF0000

    btn.setBackgroundColor(0xFFFF0000);

    I want to put that color in an array but don't know what datatype I will put to that

    that does't mean that I can't do it

    L D J 3 Replies Last reply
    0
    • H hansoctantan

      Hello everyone, 0xFFFF0000

      btn.setBackgroundColor(0xFFFF0000);

      I want to put that color in an array but don't know what datatype I will put to that

      that does't mean that I can't do it

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      It's a http://developer.android.com/reference/android/graphics/Color.html[^].

      1 Reply Last reply
      0
      • H hansoctantan

        Hello everyone, 0xFFFF0000

        btn.setBackgroundColor(0xFFFF0000);

        I want to put that color in an array but don't know what datatype I will put to that

        that does't mean that I can't do it

        D Offline
        D Offline
        David Crow
        wrote on last edited by
        #3

        hansoctantan wrote:

        I want to put that color in an array but don't know what datatype I will put to that

        Have you considered an int or a long?

        "One man's wage rise is another man's price increase." - Harold Wilson

        "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

        "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

        1 Reply Last reply
        0
        • H hansoctantan

          Hello everyone, 0xFFFF0000

          btn.setBackgroundColor(0xFFFF0000);

          I want to put that color in an array but don't know what datatype I will put to that

          that does't mean that I can't do it

          J Offline
          J Offline
          jorgesys
          wrote on last edited by
          #4

          must be an int, read the reference of setBackgroundColor method:

          void android.view.View.setBackgroundColor(int color)

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups