Skip to content Skip to sidebar Skip to footer

Make Children Of Horizontalscrollview As Big As The Screen?

The way I solved this problem is by creating a custom view for the child views, and then overriding onMeasure() for the custom view. The new onMeasure() sets the width and height t

Solution 1:

Your super.onMeasure(widthMeasureSpec, heightMeasureSpec) uses the passed in values I would think you would want these to be the actual measured width and height:

super.onMeasure(measureWidth(widthMeasureSpec), measureHeight(heightMeasureSpec));

Post a Comment for "Make Children Of Horizontalscrollview As Big As The Screen?"