PDA

View Full Version : can we change the default selected color of textlistitem??


Imoracle
02-24-2008, 01:15 PM
Can I have something like this in my textlistitem ??

<textlistitem bgcolor="${selected ? 0xfff330 : 0x000000}" .....>

</textlistitem>

can someone provide me with an example??

senshi
02-25-2008, 01:15 AM
Simple example:


<canvas debug="true" >

<whitestyle name="mystyle" selectedcolor="0xeaeaea" />

<list style="mystyle" >
<textlistitem>one</textlistitem>
<textlistitem>two</textlistitem>
<textlistitem>three</textlistitem>
</list>

</canvas>