[android-developers] Toggling ViewSwitcher children on GridView click and focus change
Right now, suppose I have a GridView with ViewSwitchers, and what I
want to do is when the user clicks on an item, it switches my
ViewSwitcher to the second child. However, when a user scrolls away
from that item or clicks another one, I want it to reset the switcher
for that previous item back to the first child.
For the first one (clicking), is it just a matter of casting the
incoming view in onItemClick as ViewSwitcher, and then doing the
switch from there? For the second one (focus change), what callback
will I need to switch back that previously clicked item back to its
first child?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home