silentw
silentw

Reputation: 4885

Content Assist not working as expected on Eclipse

These are the specs:

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...

Upvotes: 1

Views: 439

Answers (1)

Orab&#238;g
Orab&#238;g

Reputation: 11992

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.

Upvotes: 4

Related Questions