You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by V SANTOSH PAVAN RAJU BS <pa...@gmail.com> on 2011/12/30 13:17:41 UTC

can we set a background image for button?

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.

Re: can we set a background image for button?

Posted by pavan vadavalli <pa...@gmail.com>.
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.
>