Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8078817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T15:54:45+00:00 2026-06-05T15:54:45+00:00

Possible Duplicate: Moving and vanishing lines of code; trouble with Eclipse's XML Editor I

  • 0

Possible Duplicate:
Moving and vanishing lines of code; trouble with Eclipse's XML Editor

I noticed this weird problem with Eclipse whenever i try to edit the layout. It’s not even the problem with editing. It’s the problem when i click in the main.xml file, thats right, CLICKING. It automatically duplicate my line information, push it down to the next line and screws the whole file up. Eclipse works fine with all my other files like string.xml and java files in Android. Can someone help me out here?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T15:54:47+00:00Added an answer on June 5, 2026 at 3:54 pm

    After some tests, I have found that the option “Automatically format the XML edited by the visual layout editor” (in Preferences | Android | Editors) might be the culprit here.

    With my tests, I’ve found that changing a property (such as the layout_gravity) while in Graphical Layout design mode always screw up the visual display of the file when I go back to the XML (text) mode when this option is ON but that I have no problem when it’s off.

    If you want to format the XML upon your return from the Graphical Layout design mode, simply use the shortcut Ctrl-Shift-F. Also, I didn’t see any problem with using the option “Format on Save”; even when I use it in the Graphical Layout mode; so you can use Ctrl-S instead while you’re still in the Graphical Layout mode to both save and format your XML.

    I’ve tried other editors options like “Show range indicator” or “Use characters to show changes in vertical ruler” but I didn’t see any difference in behavior with activating or de-activating these options.

    Finally, to correct the visual display of the file when it’s corrupt; I found that using the shortcut: Ctrl-A, Ctrl-C, Ctrl-V is a little easier than closing/reopening the file. This is equivalent to making a Select All, Copy, Paste; effectively copying the whole XML file over itself.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Can main function call itself in C++? I found this problem very
Possible Duplicate: Safari: Absolutely positioned DIVs not moving when updated via DOM This answer
Possible Duplicate: && operator in Javascript In the sample code of the ExtJS web
Possible Duplicate: How can I understand nested ?: operators in PHP? Why does this:
Possible Duplicate: Read a file from line X to line Y? I know this
Possible Duplicate: Retain precision with Doubles in java Moving decimal places over in a
Possible Duplicate: How to get the mouse position without events (without moving the mouse)?
Possible Duplicate: What is the fastest XML parser in PHP? I still need to
Possible Duplicate: how to use foursquare API in android application? This is a question
Possible Duplicate: Parse C# string to DateTime I am facing a problem while converting

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.