https://bugzilla.novell.com/show_bug.cgi?id=645249
https://bugzilla.novell.com/show_bug.cgi?id=645249#c0 Summary: Setting LinearLayout.LayoutParams causes a java.lang.ClassCastException Classification: Mono Product: MonoDroid Version: unspecified Platform: 64bit OS/Version: Windows 7 Status: NEW Severity: Critical Priority: P5 - None Component: Runtime AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: Customer Blocker: Yes Created an attachment (id=393966) --> (http://bugzilla.novell.com/attachment.cgi?id=393966) repro project if i do this: LinearLayout itemRow = new LinearLayout(this._context); itemRow.Orientation = Orientation.Horizontal; itemRow.LayoutParameters = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.FillParent, LinearLayout.LayoutParams.FillParent); i get: E/AndroidRuntime( 288): Uncaught handler: thread main exiting due to uncaught exception E/AndroidRuntime( 288): java.lang.ClassCastException: android.widget.LinearLayout$LayoutParams E/AndroidRuntime( 288): at android.widget.ListView.setupChild(ListView.java:1702) E/AndroidRuntime( 288): at android.widget.ListView.makeAndAddView(ListView.java:1671) E/AndroidRuntime( 288): at android.widget.ListView.fillDown(ListView.java:637) E/AndroidRuntime( 288): at android.widget.ListView.fillFromTop(ListView.java:694) E/AndroidRuntime( 288): at android.widget.ListView.layoutChildren(ListView.java:1521) E/AndroidRuntime( 288): at android.widget.AbsListView.onLayout(AbsListView.java:1113) E/AndroidRuntime( 288): at android.view.View.layout(View.java:6830) E/AndroidRuntime( 288): at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1119) E/AndroidRuntime( 288): at android.widget.LinearLayout.layoutVertical(LinearLayout.java:998) E/AndroidRuntime( 288): at android.widget.LinearLayout.onLayout(LinearLayout.java:918) E/AndroidRuntime( 288): at android.view.View.layout(View.java:6830) E/AndroidRuntime( 288): at android.widget.FrameLayout.onLayout(FrameLayout.java:333) E/AndroidRuntime( 288): at android.view.View.layout(View.java:6830) E/AndroidRuntime( 288): at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1119) E/AndroidRuntime( 288): at android.widget.LinearLayout.layoutVertical(LinearLayout.java:998) E/AndroidRuntime( 288): at android.widget.LinearLayout.onLayout(LinearLayout.java:918) E/AndroidRuntime( 288): at android.view.View.layout(View.java:6830) E/AndroidRuntime( 288): at android.widget.FrameLayout.onLayout(FrameLayout.java:333) E/AndroidRuntime( 288): at android.view.View.layout(View.java:6830) E/AndroidRuntime( 288): at android.view.ViewRoot.performTraversals(ViewRoot.java:996) E/AndroidRuntime( 288): at android.view.ViewRoot.handleMessage(ViewRoot.java:1633) E/AndroidRuntime( 288): at android.os.Handler.dispatchMessage(Handler.java:99) E/AndroidRuntime( 288): at android.os.Looper.loop(Looper.java:123) E/AndroidRuntime( 288): at android.app.ActivityThread.main(ActivityThread.java:4363) E/AndroidRuntime( 288): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 288): at java.lang.reflect.Method.invoke(Method.java:521) E/AndroidRuntime( 288): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860) E/AndroidRuntime( 288): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) E/AndroidRuntime( 288): at dalvik.system.NativeStart.main(Native Method) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
