Android Question Change multiple text color of 1 label

Discussion in 'Android Questions' started by Reids, Mar 29, 2015.

  1. Reids

    Reids Member Licensed User

    Hello I found a problem to coloring specified label text color, for example I have 1 label
    in the label I place multiple line of text
    lblreturn.Text =lblreturn.Text & "Status : New Item"

    I want to set color of "Status : New Item" string only instead coloring all of label object with
    last thing I saw on forum it is possible to coloring or set bold italic of specified label, but I cannot find it anymore, can anybody help? either with library or not, I need this feature

    Please add feature coloring label next like :
    lblreturn.Text =lblreturn.Text & {red}"Status : New Item"{/red}
    it would be helpfull :D
    Thank You
  2. Mahares

    Mahares Well Known Member Licensed User

  3. Reids

    Reids Member Licensed User

    Thank You I know it exist before but cannot find it, but rich string cannot used as lblreturn.Text =lblreturn.Text & rs
    object cannot converted as string it say :(

    finally worked with
    rs.Initialize(lblreturn.Text & "{Red} "Status : New Item"{Red}")
  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