Currently my imageButtons display an image with a very undesirable padding around them. How do I get rid of the padding and just have the image as the button.
<ImageButton android:src="@drawable/defaultbutton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<ImageButton android:src="@drawable/defaultbutton2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
Secondly, How do I add links to these imagebuttons to open in the browser onClick
Try:
As for part 2 of your question… open what in your browser? Open a random URL? If so…