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

0 Response to "Display a icon/image on button"

Posting Komentar