Well .. I have some ImageButtons buttons in an Android app. I want them to display the full picture. I mean: I want ImageButton to be just a picture, you know?
Good ... bye, so good ... I can do this using the "background" property.
However, I also want the ImageButton to have rounded corners.
I have the following xml in my layout folder:
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#FFFFFFFF"/>
<corners android:radius="10dip"/>
<stroke android:width="8dip"/>
<size android:height="8dip"/>
</shape>
It works great when I don't want the image to fill the WHOLE ImageButton ... however, when I try to use the image to use the whole image, it doesn't show rounded corners.
Can someone help me please?
Bonus question: Also, how can I have a beautiful black line (rounded corners) around the image button?