Tuesday, May 4, 2010

[android-developers] Extending Gallery to not auto-center selected view

I would like to either extend the existing Gallery view or create a
new view based on the code for the Gallery view that does not auto-
center the selected view. What would be the cleanest/simplest way to
go about this? It looks like all the methods of the Gallery view that
control the auto-centering of the children are private so extending
the class might be problematic. I looked at starting with the code
for the Gallery view and the modifying it to give me the desired
effect but all the member variables that seem to be available to the
Gallery view are NOT available to me to access from my code... :(

I would love to hear what others have tried...

Mark

--
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

No comments:

Post a Comment