satyamurthy


Last Updated:

  1. satyamurthy_hyd

    satyamurthy_hyd New Member This Topic's Starter

    Joined:
    Jul 28, 2010
    Messages:
    4
    Likes Received:
    0
    Hi,
    I have Hexadecimal value and need to assign to a button's background by setBackgroundColor(),but getting Runtime Exception: see the code snippet below with exception output. Please help me resolve this

    String strColor="0xFFF3ECE0";
    int intColor= Integer.parseInt(strColor,16);
    button1.setBackgroundColor(intColor);

    ERROR/AndroidRuntime(874): java.lang.NumberFormatException: unable to parse '0xFFF3ECE0' as integer
     

    Advertisement
  2. satyamurthy_hyd

    satyamurthy_hyd New Member This Topic's Starter

    Joined:
    Jul 28, 2010
    Messages:
    4
    Likes Received:
    0
    Do we have any Data bind UI controls in Android?
     
  3. Steven58

    Steven58 Reformed PH VIP Member

    Joined:
    Feb 19, 2010
    Messages:
    32,920
    Likes Received:
    25,271
    Welcome to Android Forums! :)
     
  4. G.Armour

    G.Armour You know you want to. VIP Member

    Joined:
    Jan 11, 2010
    Messages:
    4,534
    Likes Received:
    306
    Wow. Welcome!
     

Share This Page

Loading...