I have a custom imagebutton and I only want the custom imagebutton to be clickable. Currently all of the surrounding area of the button is "clickable" and initiates the new activity. I want to minimize this "clickable background" space. How can I do it?
<ImageButton
android:id="@+id/start_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:background="@null"
android:src="@drawable/flashcardbutton" />