Bug 9284 - Layout with layout_marginStart and other attributes not building in MonoDroid, works in Eclipse ADT
Summary: Layout with layout_marginStart and other attributes not building in MonoDroid...
Status: RESOLVED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Android ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-01-04 15:44 UTC by Jay Douglass
Modified: 2016-08-03 15:24 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Jay Douglass 2013-01-04 15:44:13 UTC
I'm attempting to use some layout attributes in MonoDroid and it will not build:

<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal"
    android:layout_marginStart="16dip"
    android:layout_marginEnd="16dip" />

This builds in Eclipse ADT, but I get this error in visual studio:

No resource identifier found for attribute 'layout_marginStart' in package 'android'
No resource identifier found for attribute 'layout_marginEnd' in package 'android'

The project is set to target Android 4.1, API level 16.

I can use the layout_margin* attributes on non-layout widgets like Button, but they do not build for layout widgets (RelativeLayout, LinearLayout, etc). Again, everything works in Eclipse ADT but fails in visual studio.
Comment 1 Jay Douglass 2013-01-04 16:12:19 UTC
Just updated-- the latest version of MfA fixes whatever was causing this problem.