开发者

Override EditText selection functionality

开发者 https://www.devze.com 2023-04-11 18:23 出处:网络
I am trying to create a new Text selection, copy and paste functionality that overri开发者_开发知识库des that of android.

I am trying to create a new Text selection, copy and paste functionality that overri开发者_开发知识库des that of android. What I want to do is to change the pointer's image and style.


There are four text selection styles defined (you can find these in your SDK's data folder):

  • textSelectHandleLeft
  • textSelectHandleRight
  • textSelectHandle
  • textSelectHandleWindowStyle

Which you can override with your own custom theme. Look for these in the resource XMLs for the SDK (/platforms/android-10/data/res/values) to see how they are built and how you can customize them.

0

精彩评论

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

关注公众号