In your parent layout to add following source code android:focusable="true" android:focusableInTouchMode="true"