On Mon, Mar 16, 2009 at 9:50 AM, dan raaka <[email protected]> wrote:
> Button inherits from Textview .. and Textview has the ability to set
> drawables/images on left or bottom or right or left ..
> Check this setCompoundDrawablesWithIntrinsicBounds(Drawable left, Drawable
> top, Drawable right, Drawable bottom)
> This is not through xml though ..

The XML attributes are described here:
http://developer.android.com/reference/android/R.styleable.html#TextView

e.g.
<Button android:test="blah" android:drawableBottom="@drawable/mypng" ...>


R/

>
> -Madan
>
> On Sun, Mar 15, 2009 at 11:32 AM, megabot <[email protected]> wrote:
>>
>> Hello,
>>
>> Is there a way to create Buttons that contain both an Image and Text
>> (image on top text below or image left and text right)? And how can
>> this be done within a xml layout file?
>>
>> For example, the application 'Pkt Auctions eBay' (see Android Market)
>> has these type of buttons.
>>
>> So far I have tried and googled all over and found nothing on the
>> matter. Help is much appreciated. Thanks in advance.
>>
>>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to