Use Icon property of Button data.
Example available in the toggle buttons tutorial
http://pivot.apache.org/tutorials/toggle-buttons.html.
The below BXML entry would create a simple PushButton with the Icon
image displayed on the button
<PushButton>
<content:ButtonData text="Anchor"
icon="/org/apache/pivot/tutorials/anchor.png"/>
</PushButton>
Thanks and Regards,
Pavan
On Friday, 30 December 2011 11:17:41 PM, V SANTOSH PAVAN RAJU BS wrote:
Hi,
Is there any way to set a background image for a push button like we
set background color. So that it looks more attractive. If you have
any examples please help me.
--
Thanks & Regards
B.S.V.S.Pavan Raju.
Skype: skype_pavan1
Hyderabad.