android-input-method

How to detect gesture over ImageView?

…衆ロ難τιáo~ 提交于 2020-02-21 06:44:05
问题 I'd like to detect finger being dragged over ImageView. I get my ImageView, create instances of GestureDetector and View.OnTouchListener, then set View.OnTouchListener to ImageView. OnTouchListener detects all touches ("touch occured") and I pass them to GestureDetector, but it never calls its methods onScroll or onFling. What I am doing wrong? Bellow you can see related source: myImageView = (ImageView) findViewById(R.id.imageView1); myGestureDetector = new GestureDetector(this, new

Android Custom Keyboard with SpeechRecognizer

自闭症网瘾萝莉.ら 提交于 2020-01-24 18:49:06
问题 I have a fully functional custom android keyboard in which i have to add speech recognition. Here are the relevant parts of the implementation i have public class CustomInputMethodService extends InputMethodService implements <random stuff> { private SpeechRecognizer mSpeechRecognizer; private RecognitionListener mSpeechlistener; public void onCreate() { super.onCreate(); mSpeechRecognizer = SpeechRecognizer.createSpeechRecognizer(this); mSpeechlistener = new CustomRecognitionListener();

how to make swipe keyboard like app [closed]

余生颓废 提交于 2020-01-22 05:32:08
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . i'd like to know which is the tecnique behind a gesture keyboard like Swype Keyboard or Nexus 4 stock keyboard. I've googled a lot for this but can't find nothing usefull. I obviously found the example in the sdk samples for the simple kayboard, and started with that in order to understand the principle behind a

Continuous OTP input with EditText

血红的双手。 提交于 2020-01-22 03:10:13
问题 Here is 4 EditText for input a numeric password. I want it to be like, If first EditText is filled by 1 number then, focus should goes to next EditText and should also work same in reverse manner. So that user can keep entering password from Left most and can also erase same way from Right most. Can someone suggest what can be the best approach to proceed? 回答1: You can use the library Android PinView / OtpView or you can use addTextChangedListener to add a TextWatcher which is called whenever

How the input method can request 'updateCursor' event?

两盒软妹~` 提交于 2020-01-13 02:52:48
问题 we are implementing custom input method service and we are interested in receiving cursor update events. The documentation of InputMethodSession's updateCursor() says: " This method is called when cursor location of the target input field has changed within its window. This is not normally called, but will only be reported if requested by the input method . " How the input method can request this event? Thanks in advance, Andriy 回答1: It looks like this is unimplemented. In the TextView

Android get available input languages

时光毁灭记忆、已成空白 提交于 2020-01-07 03:04:05
问题 I'm trying to get the available input devices on Android, in order to do that I'm using the InputMethodManager and using the API of getEnabledInputMethodList() as follows: InputMethodManager inputMgr = (InputMethodManager) mContext.getSystemService(Context.INPUT_METHOD_SERVICE); List<InputMethodInfo> inputMethodList = inputMgr.getEnabledInputMethodList(); for (InputMethodInfo method : inputMethodList) { List<InputMethodSubtype> subMethods = inputMgr.getEnabledInputMethodSubtypeList(method,