2

In my application , i have to submit Username and Password. But, it shows some suggestions while entering data. i am using the following in my xml.

<EditText    
        android:id="@+id/edtpass" 
        android:drawableLeft="@drawable/login_password_icon"
        android:drawablePadding="15dp" 
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:background="@drawable/edt_bg"
        android:textColorHint="#FFFFFF"
        android:hint="@string/password"
        android:inputType="textNoSuggestions"  
        android:layout_marginTop="20dp"
        android:layout_gravity="center"
        android:padding="5dp"
        android:imeOptions="actionDone"
        android:singleLine="true"
        android:textColor="#ffffff"
        android:textCursorDrawable="@null"
        />

enter image description here

So, please guide me how to stop suggesstions.

koti
  • 1,071
  • 3
  • 15
  • 35

2 Answers2

0

In the layout XML, add the following attribute to your EditText:

android:inputType="textFilter"

check this http://developer.android.com/reference/android/widget/TextView.html#attr_android%3ainputType

williamj949
  • 11,166
  • 8
  • 37
  • 51
0

In EditText:

android:inputType="text|textNoSuggestions"
InnocentKiller
  • 5,234
  • 7
  • 36
  • 84
Palak
  • 2,165
  • 2
  • 21
  • 31