I Inman Well-Known Member Licensed User Longtime User Apr 15, 2011 #1 I know you can hide the keyboard for an EditText by setting InputType property as TYPE_NONE. But is it possible to prevent the longpress menu which contains Select All, Cut etc...from showing up?
I know you can hide the keyboard for an EditText by setting InputType property as TYPE_NONE. But is it possible to prevent the longpress menu which contains Select All, Cut etc...from showing up?
K kickaha Well-Known Member Licensed User Longtime User Apr 15, 2011 #2 This is not documented anywhere that I can find, but the LongClick of the EditText is valid. All you have to do is insert this sub: B4X: Sub text_LongClick ' Put your EditTexet name in place of "text" Return True End Sub in your code. It catches the long click, and by returning True it consumes it before the OS acts on it. Upvote 0
This is not documented anywhere that I can find, but the LongClick of the EditText is valid. All you have to do is insert this sub: B4X: Sub text_LongClick ' Put your EditTexet name in place of "text" Return True End Sub in your code. It catches the long click, and by returning True it consumes it before the OS acts on it.
I Inman Well-Known Member Licensed User Longtime User Apr 15, 2011 #3 Fantastic! Works perfectly. Thank you very much. Upvote 0