Content Assist not working as expected on Eclipse

These are the specs:

  • OS: Windows 7 Professional x86
  • IDE: Eclipse Juno 4.2 (for Java Developers)
  • ADT: Version 20
  • SDK: 7

I'm creating an XML layout, and after dragging a ImageView to a FrameLayout, it all works as expected.

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:android1="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent" >

    <ImageView
        android1:id="@+id/imageView1"
        android1:layout_width="wrap_content"
        android1:layout_height="wrap_content"
        android1:src="@drawable/logo_splashcreen" />

</FrameLayout>

What I noticed, is that it is using android1 instead of android.

If I try to add a new parameter to the ImageView, via the Ctrl+Space it throws me the error.

Is it normal? Never happened to me before...

Answers


Try removing the

  xmlns:android1="http://schemas.android.com/apk/res/android"

line, which seems to be a useless duplicate for

  xmlns:android="http://schemas.android.com/apk/res/android"

Then, replace all 'android1:' by 'android:' strings in your file.


Need Your Help

Trouble with function parameters/calling functions in C

c arrays function pointers parameters

I am having difficulty implementing different functions in my program due to their types of parameters. I am in the process of writing a program that reads three sequences of letters from an input ...

How can I get a sensor's name?

android sensor

I want to programatically get a Sensor's name. Say the name of the ambient light sensor.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.