title: Xamarin.Android C# layout_weight error: Must specify a unit, such as "px" (Intellisense?)
body: <p>A snippet of my layout:</p>
  <pre><code>        &lt;LinearLayout
          android:orientation=&quot;horizontal&quot;
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;wrap_content&quot;&gt;
          &lt;Button
              android:text=&quot;@string/moreInfo&quot;
              android:layout_width=&quot;wrap_content&quot;
              android:layout_weight= &quot;1&quot;
              android:layout_height=&quot;wrap_content&quot;
              android:layout_gravity=&quot;left&quot;
              android:id=&quot;@+id/moreInfo&quot; /&gt;
  </code></pre>
  <p>I get an IntelliSense error: Must specify a unit, such as &quot;px&quot; for every instance of android:layout_weight in the file. I've tried adding WeightSum to the LinearLayout and changing from int to float (though still in quotes) but the error persists.</p>
  <p>The odd thing (to me, at least) is that I can still build/run my code on the emulator.  My guess is that it's something in IntelliSense, and I don't like outstanding errors, even if they're erroneous...</p>
  <p>Using VS2019 Community.</p>