Bug 46531 - Android source designer adds newline instead of quote
Summary: Android source designer adds newline instead of quote
Status: RESOLVED DUPLICATE of bug 58764
Alias: None
Product: Android
Classification: Xamarin
Component: Designer ()
Version: 6.1.1 (C7SR0)
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Stephen Shaw
Depends on:
Reported: 2016-11-06 19:51 UTC by Thomas Van den Bossche
Modified: 2017-09-04 07:53 UTC (History)
5 users (show)

Tags: bb
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 or GitHub 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:

Description Thomas Van den Bossche 2016-11-06 19:51:45 UTC
When creating a layout in Android with the XML designer (visual designer with "Source" tab selected), it always adds a newline when entering a quote.

1. Add a new AXML file in the layout folder
2. Open the file and select the tab "Source"
3. By default a LinearLayout is added which has no corresponding closing tag (closed with />)
4. Add a closing tag </LinearLayout>
5. Add a RelativeLayout inside
6. Typ "ID" and press tab to use the autocomplete
7. Add an equal sign and a quote ("), this usually works
8. Now typ "width" and press tab to use the autocomplete to get android:layout_width
9. Add an equal sign and a quote
10. It now jumps to a newline instead of adding a quote

XML in designer after following these steps:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"

	<RelativeLayout android:id="@+id/Test" android:layout_width=

Comment 1 Stephen Shaw 2016-11-16 01:03:47 UTC
Mike, I've seen this too. I think it is a general text editor issue.
Comment 2 Mike Krüger 2016-11-21 12:51:44 UTC
Can't reproduce in xml 

Add a Console.WriteLine (args + Environment.StackTrace); in Text Document after line 280 to see where that gets inserted.

I expect a text editor extension doing that but can't repro that with monodevelop core - that trace would help.
Comment 3 Al Clark [MSFT] 2017-06-23 20:41:49 UTC
Able to replicate on latest Alpha.

=== Visual Studio Community 2017 for Mac (Preview) ===

Version 7.1 Preview (7.1 build 583)
Installation UUID: 08ed6cb4-2770-4651-b990-1029b402f099
	Mono (2017-04/4a0006f) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 502000104

=== NuGet ===


=== .NET Core ===

Runtime: /usr/local/share/dotnet/dotnet
SDK: /usr/local/share/dotnet/sdk/1.0.1/Sdks
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/msbuild/15.0/bin/Sdks

=== Xamarin.Profiler ===

Version: 1.5.4
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

=== Xamarin.Android ===

Version: (Visual Studio Community)
Android SDK: /Users/Alan/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		4.4 (API level 19)
		5.1 (API level 22)
		6.0 (API level 23)
		7.1 (API level 25)

SDK Tools Version: 26.0.2
SDK Platform Tools Version: 25.0.5
SDK Build Tools Version: 25.0.3

Java SDK: /usr
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)

Android Designer EPL code available here:

=== Apple Developer Tools ===

Xcode 8.3.3 (12175.1)
Build 8E3004b

=== Xamarin.Mac ===

Version: (Visual Studio Community)

=== Xamarin.iOS ===

Version: (Visual Studio Community)
Hash: 7571635e
Branch: master
Build date: 2017-05-09 16:04:54-0400

=== Xamarin Inspector ===

Version: 1.3.0-alpha2
Hash: fa030e0
Branch: master
Build date: Thu, 01 Jun 2017 20:55:26 GMT
Client compatibility: 1

=== Build Information ===

Release ID: 701000583
Git revision: 445a7f09feca58babb966e0c66a6b299d0bd450c
Build date: 2017-05-12 16:05:38-04
Xamarin addins: f9b72ca5f6ca5d9476d8f58353ada2afd56c549b
Build lane: monodevelop-lion-d15-3-preview

=== Operating System ===

Mac OS X 10.12.5
Darwin 16.6.0 Darwin Kernel Version 16.6.0
    Fri Apr 14 16:21:16 PDT 2017
    root:xnu-3789.60.24~6/RELEASE_X86_64 x86_64

=== Enabled user installed addins ===

Android Signature Tool 2.1.2
Comment 4 David Karlaš 2017-09-04 07:53:45 UTC

*** This bug has been marked as a duplicate of bug 58764 ***