Closed yccheok closed 5 years ago
I look at the code of NestedGridView - https://github.com/jaredrummler/ColorPicker/blob/master/library/src/main/java/com/jaredrummler/android/colorpicker/NestedGridView.java
NestedGridView
I have been puzzled a while, as I'm not understand the idea behind the following code?
@Override public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST); super.onMeasure(widthMeasureSpec, expandSpec); }
May I know the purpose of having NestedGridView, instead of a standard GridView?
GridView
Sorry. I read the code and run the demo. I know why.
I look at the code of
NestedGridView
- https://github.com/jaredrummler/ColorPicker/blob/master/library/src/main/java/com/jaredrummler/android/colorpicker/NestedGridView.javaI have been puzzled a while, as I'm not understand the idea behind the following code?
May I know the purpose of having
NestedGridView
, instead of a standardGridView
?