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

Background image stretching

android background

I have a background image on my layout's outer-most LinearLayout. I simply do the following:

Dynamic Linq & ICompare

c# linq dynamic sql-order-by

I'm trying to make use of James McCormack's guide to using a custom IComparer with Dynamic Linq. - see

Script to rename the first 6 files in a folder

php batch-file

I am looking for a script that can rename the first 6 files in a folder. I have a folder of files and I would like those renamed to 1-6 for another script I made. Is there a way to do this?