I have a small image displayed in a LinearLayout with some margin on its right ans left. My problem is that the margin isn't clickable. How can I display a space on the right and left of my View, using this extra space to expand my clickable zone ?
<ImageButton
android:id="@+id/markReadButton"
android:layout_width="22dp"
android:layout_height="22dp"
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:adjustViewBounds="true"
android:background="@android:drawable/checkbox_on_background"
android:gravity="center_vertical"
android:onClick="onMarkRead" >
</ImageButton>