异常:java.lang.ClassCastException: android.view.ViewGroup$LayoutParams cannot be cast to android.view.异常:java.lang.ClassCastException: android.view.ViewGroup$LayoutParams cannot be cast to android.view.ViewGroup$MarginLayoutParams
异常:java.lang.ClassCastException: android.view.ViewGroup$LayoutParams cannot be cast to android.view.ViewGroup$MarginLayoutParams今天在使用LayoutParams时出现了一个问题,我是这样用的:在gridview初始化的时候,为gridview添加了一个h