override onMeasure to expand list failed.
wsk900906 opened this issue · 0 comments
wsk900906 commented
I want to expand this StaggeredGridview and use the method same as gridview:
@OverRide
public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
int expandSpec = MeasureSpec.makeMeasureSpec(
Integer.MAX_VALUE >> 2, MeasureSpec.UNSPECIFIED);
super.onMeasure(widthMeasureSpec, expandSpec);
ViewGroup.LayoutParams params = getLayoutParams();
params.height = getMeasuredHeight();
}
but the list become to blank. Why?
Could anyone can help me...