android.view.ViewGroup$LayoutParams cannot be cast to android.view.ViewGroup$MarginLayoutParams

 FATAL EXCEPTION: main
                                                 Process: com.moreunion.zhenghao, PID: 3335
                                                 java.lang.ClassCastException: android.view.ViewGroup$LayoutParams cannot be cast to android.view.ViewGroup$MarginLayoutParams
                                                     at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6264)
                                                     at android.widget.FrameLayout.onMeasure(FrameLayout.java:214)
                                                     at android.view.View.measure(View.java:20234)
                                                     at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6282)
                                                     at android.widget.FrameLayout.onMeasure(FrameLayout.java:214)
                                                     at android.support.v7.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:139)
                                                     at android.view.View.measure(View.java:20234)
                                                     at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6282)
                                                     at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1705)
                                                     at android.widget.LinearLayout.measureVertical(LinearLayout.java:797)
                                                     at android.widget.LinearLayout.onMeasure(LinearLayout.java:657)
                                                     at android.view.View.measure(View.java:20234)
                                                     at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6282)
                                                     at android.widget.FrameLayout.onMeasure(FrameLayout.java:214)
                                                     at android.view.View.measure(View.java:20234)
                                                     at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6282)
                                                     at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1705)
                                                     at android.widget.LinearLayout.measureVertical(LinearLayout.java:797)
                                                     at android.widget.LinearLayout.onMeasure(LinearLayout.java:657)
                                                     at android.view.View.measure(View.java:20234)
                                                     at cn.bingoogolapple.swipebacklayout.BGASwipeBackLayout.onMeasure(BGASwipeBackLayout.java:714)
                                                     at android.view.View.measure(View.java:20234)
                                                     at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6282)
                                                     at android.widget.FrameLayout.onMeasure(FrameLayout.java:214)
                                                     at com.android.internal.policy.DecorView.onMeasure(DecorView.java:724)
                                                     at android.view.View.measure(View.java:20234)
                                                     at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2674)
                                                     at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1607)
                                                     at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1880)
                                                     at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1492)
                                                     at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7103)
                                                     at android.view.Choreographer$CallbackRecord.run(Choreographer.java:923)
                                                     at android.view.Choreographer.doCallbacks(Choreographer.java:725)
                                                     at android.view.Choreographer.doFrame(Choreographer.java:658)
                                                     at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:909)
                                                     at android.os.Handler.handleCallback(Handler.java:836)
                                                     at android.os.Handler.dispatchMessage(Handler.java:103)
                                                     at android.os.Looper.loop(Looper.java:203)
                                                     at android.app.ActivityThread.main(ActivityThread.java:6538)
                                                     at java.lang.reflect.Method.invoke(Native Method)
                                                     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1113)
                                                     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:974)

你可能感兴趣的:(Android)