I've always wanted to be able to attach an onSizeChanged listener to an arbitrary view to make this easy, but that doesn't seem to be in the cards for Android. You have to wrap your arbitrary view inside another custom container and have that container pay attention to onSizeChange to be able to respond to that arbitrary view's actual size being known.
Doug On Thursday, August 2, 2012 7:21:25 AM UTC-7, Fang wrote: > > Hi Android Developers, > > As a request of a function in my app, I need to know a view's height and > width before it's really shown on screen. > Here I want to know whether it is possible? If yes, then how about the > performance? Thanks in advance. > > Regards, > Fang > -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en