开发者

IME window overlap cursor in Edittext, how to prevent it?

开发者 https://www.devze.com 2022-12-27 04:33 出处:网络
I\'m using Edittext and it has images and texts. Then, I add image file on Edittext and I click Edittext, IME window shows, naturally.

I'm using Edittext and it has images and texts. Then, I add image file on Edittext and I click Edittext, IME window shows, naturally. ( * At that time cursor is located at right-bottom corner of added image file.) The problem is IME window overlap cursor, so users complain that 'where is my cursor?'

How to prevent that IME window ov开发者_运维问答erlap cursor?


You could try "adjustResize" on your activity. In your AndroidManifest file

<activity android:name="MyActivity" android:windowSoftInputMode="adjustResize"></activity>

There are other values for windowSoftInputMode that you could also try, e.g. "adjustPan".

See http://developer.android.com/guide/topics/manifest/activity-element.html#wsoft

0

精彩评论

暂无评论...
验证码 换一张
取 消