I've got a custom view that's a child of a LinearLayout that's a child of a ScrollView.
In layout xml file, the height of the custom view and LinearLayout is set as WRAP_CONTENT. I'd like to set the height of the custom view dynamically. @Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { setMeasuredDimension( widthMeasureSpec, 800 ); } this works fine. but sometimes i'd like to set the height to the height of the scroll-view parent. (it's XML height is MATCH_PARENT - i.e. takes up the full height). How can I figure out the height of the scroll-view in the above method. -- -- 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 --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.