How to turn off text suggestion for TextFieldTTF cocos2dx? - android

I am using TextFieldTTF in cocos2dx 3.6 for some reason I cannot use EditBox, I want to turn off text suggestion appeared above keyboard but there is no method to disable these text suggestion in TextFieldTTF. Is there a way?

May I ask you about why you can't use EditBox? (its because of alignment issues ?)
For TextFieldTTF you can try to call setSecureTextEntry (bool value).
It might off text suggestion, but you will faced with new problem - text can be shown as *****. This problem you may try to resolve by implement IMEDelegate.

Related

Android Custom Keyboard with unusual symbols

Hi guys i am wonder whether it is possible to create a custom keyboard in Android such as the once attached with this question. Any ideas and clue would be very much appreciated. Hoping for better response. Thanks in Advance.
I've wondered about that in the past and I ended up using a custom View, assigning the active EditText element to it, hiding the system keyboard and changing the content when a button is pressed.

phonegap android edittext is hidden behind virtual keyboard

I am developing an android phonegap app. i created a popup using HTML, which contains two edit fields for "username" and "password". when these fields receives focus, the soft keyboard appears and hides immediately. Can anybody say why it behaves like this.
Thanks in advance
it must be losing focus right after too for some other reason I would suspect.
Try to add android:windowSoftInputMode="adjustResize" on your Android manifest file.That worked for me.
It's a late answer but will be helpful for someone else.

Any way to disable EditText from editing in Android ICS but still make it highlightable?

I'm making an application that will store a page of text. This application should read highlighted text shown on the screen and pronounce it for the user. The problem is that when I disable the EditText from editing, I can't set highlight in the EditText anymore.
I use this code for disabling:
contentBox.setKeyListener(null);
And this code for setting highlight:
contentBox.setSelection(0,findNextLineIndex(0));
Any idea? Thanks.
I think you can use android:editable="false" to disable it; then u can get its focus :) cheers :)

Android 4.0 EditText cursor is always invisible for editable=false

In my app I want an EditText that doesn't accept any input, i.e. android:editable="false" in XML layout or setKeyListener(null) in code.
I only want to add characters in a very controlled manner, and so I always add it programmatically with setText() and I don't want any virtual keyboard to show up. However, I still need a visible cursor in the EditText so that the user will know where the programmatic input will be inserted.
This was very easy to implement (android:editable="false") until Android 4.0. In 4.0, the cursor was apparently removed. I've tried android:cursorVisible="true" but it doesn't work.
Does anyone know how to both have a visible cursor and still suppress input in Android 4.0? Really grateful for any help here.
Please Try
android:clickable="false"
Set android:focusable=false in your EditText.
I had similar problem. Try using:
editText.setRawInputType(InputType.TYPE_CLASS_TEXT);
editText.setTextIsSelectable(true);
it worked for me. For more details see http://code.google.com/p/android/issues/detail?id=27609

Titanium Textfield on TableView not getting focused

I am having few text fields inside the table view, while clicking on the text fields it is not getting focused(in Android platform). I have seen some questions regarding the same issue, but those suggestions not worked for me. I am using Titanium 1.7.5, Android 2.2
I resolved this problem in Android to set the Edit Text Property:
android:imeOptions="actionSearch"
If it is not working on Mobile Device, I have another solution for it:
android:imeOptions="actionNext"
android:selectAllOnFocus="true"
I had the same issue, and some steps you should keep in mind:
Don't add a focus event to the field, this will overwrite the build-in one
Add the event singletap and fire the focus event on that field
mytextfield.addEventListener('singletap',function(){ mytextfield.focus(); });
This should do the trick, at least, it did for me.
textfields did not act identically on every device while gaining the focus. you should have a look at the softKeyboardOnFocus-property. it can have the following value:
Titanium.UI.Android.SOFT_KEYBOARD_DEFAULT_ON_FOCUS
Titanium.UI.Android.SOFT_KEYBOARD_HIDE_ON_FOCUS
Titanium.UI.Android.SOFT_KEYBOARD_SHOW_ON_FOCUS
maybe it helps to set the property to SOFT_KEYBOARD_SHOW_ON_FOCUS. this requests to show soft keyboard on focus. keep in mind that android can override this.

Categories

Resources