Hello all,

 

I'm really tearing my hair out trying to make a Spinner component behave
with an EditText as it's child rather than a TextView.

The problem I've getting is that everytime I select an item from the
drop down list, I lose the focus ring from the EditText.  The cursor is
still there, but somehow the state has been lost.

 

The problem CAN be fixed (sort of) by adding a call to requestLayout()
in the onItemSelected event handler.  This seems to be quite
heavy-handed though, because this forces the whole window to be layed
out.

 

Surely there must be a simple way to force the spinner to layout it's
contents & therefore reset the state of the focus ring without laying
out the whole window?  I've tried spinner.forceLayout(),
spinner.childDrawableStateChanged(editText), editText.invalidate() all
to no effect.

 

Does anyone have any ideas please?

I've been slamming my head against this wall for a week now.

 

Regards,

 

Peter.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to