I want to add image in button with text my
code is
<Button
android:id="@+id/mybtn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Ok" />
Home / DeveloperSection / Forums / How to add image in button with text in android
I want to add image in button with text my
code is
<Button
android:id="@+id/mybtn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Ok" />
Anonymous User
27-Feb-2015You need to add drawableLeft or drawableRight in your xml file. It set icon on left, right top and bottom.
It will look like :