How to disable copy/paste from/to EditText

后端 未结 24 1351
情歌与酒
情歌与酒 2020-11-22 12:18

In my application, there is a registration screen, where i do not want the user to be able to copy/paste text into the EditText field. I have set an onLon

24条回答
  •  难免孤独
    2020-11-22 12:48

    https://github.com/neopixl/PixlUI provides an EditText with a method

    myEditText.disableCopyAndPaste().

    And it's works on the old API

提交回复
热议问题