Android On Focus Listener and On Click Listener on ImageView
I have an imageview - It has both the attributes - focusable and focusableintouchmode set to true <ImageView android:id="@+id/ivMenu01" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:focusable="true" android:focusableInTouchMode="true" > </ImageView> I have implemented the onFocusChangeListener in my activity- @Override public void onFocusChange(View v, boolean hasFocus) { switch (v.getId()) { case R.id.ivMenu01: if (hasFocus) { ivMenu01.setImageBitmap(Utility .getBitmap("Home_ford_focus.png")); // Focussed image } else { ivMenu01