Nov 30, 2010

Display a icon/image on button

To display a icon/image of drawable type, the tab android:drawableRight (or drawableTop, drawableRight and drawableBottom) can be used.

<Button
android:id="@+id/button"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="- I'm a Button -"
android:drawableRight="@drawable/icon"
/>


Display a icon/image on button


Related post:
- Display a icon/image on button using Java code

6 comments:

  1. can you put an animation inside a button?

    ReplyDelete
  2. hello dyyyy,

    Sorry, I have no idea!

    ReplyDelete
  3. Hi, how can you make the same thing from java code?

    ReplyDelete
  4. can u please tell me how find the date on which image was taken

    ReplyDelete
  5. Hey Pal, your blog has really helped me getting started with Android.
    Thanks a Lot :)

    ReplyDelete

Infolinks In Text Ads