'How to add image in a button without using image button?
How to add image to button without using image button. ill try on button but not get solution.
thanks
Solution 1:[1]
You can add a background to the button in your XML:
android:background="@drawable/MY_IMAGE"
Or from code:
myButton.setBackground(getContext().getDrawable(R.drawable.MY_IMAGE));
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Filip Petrovski |
