[Mono-bugs] [Bug 641170] New: Cannot set LayoutParams in LinearLayout (and maybe other views)

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Sep 22 14:12:17 EDT 2010



           Summary: Cannot set LayoutParams in LinearLayout (and maybe
                    other views)
    Classification: Mono
           Product: MonoDroid
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Class Libraries
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: geniwab at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

Description of Problem:

To set the LayoutParams at a LinearLayout, a property named LayoutParams has
been created, but because a inner class named LayoutParams also exists the
property becomes inaccesible.

The exact error is: Error    3    'LayoutParams': cannot reference a type
through an expression; try 'Android.Widget.LinearLayout.LayoutParams' instead

Here is a piece of code to reproduce the bug:

LinearLayout layout = new LinearLayout(Context);

LinearLayout.LayoutParams mParams = new

layout.LayoutParams = mParams; //This line gets highlighted as an error on VS

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.

More information about the mono-bugs mailing list