TonicArtos / StickyGridHeaders

This project has been superseded by SuperSLiM, a layout manager for RecyclerView. I strongly recommend using SuperSLiM and not StickyGridHeaders.
http://tonicartos.com
Apache License 2.0
1.47k stars 442 forks source link

Use StickyGridHeadersGridView in Scrollview #120

Closed Tipsyume closed 6 years ago

Tipsyume commented 9 years ago

why StickyGridHeadersGridView display incomplete

YLBFDEV commented 8 years ago

GridView已经可以滚动不需要在外面嵌套 Scrollview。可以把Scrollview去掉试试看

Tipsyume commented 8 years ago

具体是这样的,一个页面除了gridview还有一些头部布局的,目前这个gridview不能addheader,嵌套在Scrollview里了!

bejibx commented 8 years ago

StickyGridHeadersGridView is scrollable by itself. You should never put one scrollable view inso another.

wangshaolei commented 8 years ago

@Tipsyume hi, how do you solve the problem? can y help me?

wangshaolei commented 8 years ago

I try the code : overriide onMeasure(){super.onMeasure(widthMeasureSpec, MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST));} but find big empty view in the scrollview's bottom.