Can anyone please help me to find the Postion of the focused Item.
My requirement is to change the Images on FocusOut and FocusIn.
Please find the code:
------------------------
OnFocusChangeListener imageViewFocusListener = new OnFocusChangeListener() {
public void onFocusChange(View v,boolean hasFocus) {
// Need to find the position of the focused Item
if(hasFocus) {
// change the Image of the focused Item.
((ImageView)v).setImageResource(mfocusInIds[imagePosition]);
}
else {
}
}
};
I am trying to find the position of the current Focused Item. AS of I know only onItemSelected(AdapterView, View, int, long) gives the position. This will not help me since on focusOut I have to change the image.
Please reply If anyone have any idea on this.

