tags:

views:

305

answers:

1

How do you stop the Android softkeyboard from displaying completed text in a TextView. It is very important for my application that the spelling is not shown. In 1.6 SDK I made the InputType = VisiblePassword and that seemed to stop it, however this does not appear to work in the 2.1 SDK.

thanks

+1  A: 

Did you try setting inputType to textNoSuggestions? That's API an API level 5, though, so you probably want to continue to include textVisiblePassword for the previous versions.

Shaun K.
I will try this out
jax
I can't find textNoSuggestions in the eclipse XML editor. Do you know why this is?
jax
I added it manuallyandroid:inputType="textVisiblePassword|textNoSuggestions"but then I get an error message for a malformed xml file :(
jax
What's your target API level in the Android manifest?
Shaun K.
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="4"/>
jax
So I assume I will need to change the minSdkVersion to 5, but then 1.6 users will not be able to use the product!
jax
No, change targetSdkVersion to 5 and minSdkVersion to whatever level you want to support.
Shaun K.
OK that makes sense, I will give it a try tonight
jax
ahhh, still not working. I made the targetSdkVersion to 5 but textNoSuggestions is still not visible in Eclipse...I restarted eclipse also after making the change.
jax
Looks like you need to set the target from the project properties. Select the Project, then File > Properties. Go to Android. Set the target there.
Shaun K.
That's assuming you're using Eclipse.
Shaun K.
That worked, cheers
jax
you would not believe it...it still does not work.I have everything setup with textNoSuggestions and visiblePassword. It compiles and runs fine, however, when I run it in the emulator I get the same problem...suggestions are showing. It seems that the soft keyboard simply ignores the flat????
jax