I have a custom view A which extends RelativeLayout and internally
uses 3 instances of custom view B: B1, B2 and B3, which can be 'flung'
left or right to move to B4, B5 and B6.

I want to resize the whole view based on the orientation. I have
hardcoded the size of B based on the screen width of 320 (if the view
is initialized in potrait mode), or 480 (landscape mode), and then use
the screen density from getDisplayMetrics() to convert them into real
pixel values to draw my view. Is this is best way to do it?

I was trying to use onSizeChanged to look for orientation changes, but
this does not work because onMeasure() is called before
onSizeChanged() and the orientation change does not show up.

Any advice anyone?

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