Give the Layout background as the name of the color.

This is just for the parent that you assign only to that button if you want
to assign the background to the window that you need to set the background
at the Parent layout of all views.

<layout android:background="#ff0000">
            <button android:background="image_name">
</layout>

Thanks & Regards,
Yousuf Syed
773-719-4786



On Wed, Jul 14, 2010 at 9:21 PM, Raul Martinez <[email protected]> wrote:

> ok i just have one more question how do i change the color of the
> background like behind the images, if you know what i mean? not the button
> but behind them
>
>
> On Wed, Jul 14, 2010 at 8:13 PM, Raul Martinez <[email protected]> wrote:
>
>> would that get rid of the grey area around the image?
>>
>>
>> On Wed, Jul 14, 2010 at 8:01 PM, Yousuf Faheem <[email protected]
>> > wrote:
>>
>>>
>>> Hi,
>>>
>>> you can try using this instead.
>>>
>>> android:background="@drawable/image_name"
>>>
>>> Thanks & Regards,
>>> Yousuf Syed
>>> 773-719-4786
>>>
>>>
>>>
>>>
>>> On Wed, Jul 14, 2010 at 8:23 PM, Mark Murphy <[email protected]>wrote:
>>>
>>>> Use ImageButton.
>>>>
>>>> On Wed, Jul 14, 2010 at 8:13 PM, Raul Martinez <[email protected]>
>>>> wrote:
>>>> > i want to replace a button with an image, and i tried doing it through
>>>> xml
>>>> > with android:src="@drawable/icon" but its not working what should i
>>>> do, or
>>>> > is there another way of replacing a button with an image
>>>>
>>>> --
>>>> Mark Murphy (a Commons Guy)
>>>> http://commonsware.com | http://github.com/commonsguy
>>>> http://commonsware.com/blog | http://twitter.com/commonsguy
>>>>
>>>> _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
>>>> Available!
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Android Beginners" group.
>>>>
>>>> NEW! Try asking and tagging your question on Stack Overflow at
>>>> http://stackoverflow.com/questions/tagged/android
>>>>
>>>> To unsubscribe from this group, send email to
>>>> [email protected]<android-beginners%[email protected]>
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/android-beginners?hl=en
>>>>
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Beginners" group.
>>>
>>> NEW! Try asking and tagging your question on Stack Overflow at
>>> http://stackoverflow.com/questions/tagged/android
>>>
>>> To unsubscribe from this group, send email to
>>> [email protected]<android-beginners%[email protected]>
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-beginners?hl=en
>>>
>>
>>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> [email protected]<android-beginners%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to