[android-developers] forcing a view to refresh.
This one has me stumped. I am using a pl.polidea.treeview.AbstractTreeViewAdapter to create a collapsible table of overlay contents displayed in a sliding drawer object. Every object that has a child node has a button to collapse or expand the node. When I first populate the view, my orientation is horizontal (natural position when working with a map). When I open the sliding drawer and press the collapse/expand button, nothing happens. If I close the drawer or change orientation, the collapse or expansion occurs. And it remains working. So the button is getting fired and the change in state is occurring, but the change is not reflected in the current display of the view but only if the view has not been refreshed by an axis change or by closing the drawer.. I have tried to call postInvalidate and requestLayout and neither has any affect. I think (I have not re-tried to make sure) if I start the view in the vertical than everything works fine regardless of orientation. Any suggestions?
--
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