I think you can now safely remove the LinearLayout that contains the ImageButton, it serves no purpose anymore.