Search code examples
androidgraphical-layout-editor

Android Graphical Layout error


For some reason i don't know graphical layout on eclipse stop working

After some test i know the probleme is the EditText

I don't know why i paste here my EditText tell me if i do something wrong

<EditText
    android:id="@+id/input"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_centerHorizontal="true"
    android:layout_centerVertical="true"
    android:ems="10" android:inputType="">
    <requestFocus />
</EditText>

Eclipse error log is:

String index out of range: 0

Solution

  • Just add android:inputType="" to some type which you want like "text".It will work fine.