Disabling text selection in PhoneGap

后端 未结 9 900
伪装坚强ぢ
伪装坚强ぢ 2020-12-02 14:14

Is it possible to disable text selection to make a PhoneGap app more similar to normal native app?

Something like this:



        
9条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-02 15:17

    Recently updated to Android 4.4 kitkat and it resolved the problem of Edittext showing up on taphold (long press). Apparently edittext doesn't showup on taphold with jquery mobile and phonegap on android 4.4. I am using a custom aosp rom so haven't tested on an official release but am guessing (and hoping) it should work as well for any 4.4 release. It also seems to resolved other conflicts I was having with onclick which I posted below.

    Older method I found that works (with possible issues) for older ICS roms (only tested on 4.0.4 custom rom).
    By adding a scrollbar

    example:

    content

    It disables the EditText from popping on taphold (long press) for phonegap and jquery mobile as well. Not sure yet if this will cause any conflicts (as seems to have some effects with onclick which am looking at sorting out) but with regular text should work well.--- Issues sorted out with Android 4.4 and no need for scroll either anymore. (see top of post)

提交回复
热议问题