FlexibleRichTextView icon indicating copy to clipboard operation
FlexibleRichTextView copied to clipboard

Is this type supported

Open ningxz opened this issue 8 years ago • 3 comments

image

the image insert in the text

ningxz avatar Feb 24 '17 06:02 ningxz

I didn't implement it temporarily. But if there are just a few specific embedded images you can use setIcon and setIconStr of Tokenizer. Look at https://github.com/daquexian/FlexibleRichTextView/blob/master/library/src/main/java/com/daquexian/flexiblerichtextview/Tokenizer.java#L736

On Fri, Feb 24, 2017, 2:05 PM Neexz [email protected] wrote:

[image: image] https://cloud.githubusercontent.com/assets/9331698/23292356/32d97ec0-fa9a-11e6-964d-328841e65e1a.png

the image insert in the text

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/daquexian/FlexibleRichTextView/issues/4, or mute the thread https://github.com/notifications/unsubscribe-auth/ALEcnydBWCKSyklPiJi6MCYWx49TQrQTks5rfnMsgaJpZM4MK292 .

daquexian avatar Feb 24 '17 06:02 daquexian

In this way you could only use image in resource.

I will implement the embedded image feature later :)

On Fri, Feb 24, 2017, 2:23 PM quexian da [email protected] wrote:

I didn't implement it temporarily. But if there are just a few specific embeded images you can use setIcon and setIconStr of Tokenizer.

On Fri, Feb 24, 2017, 2:05 PM Neexz [email protected] wrote:

[image: image] https://cloud.githubusercontent.com/assets/9331698/23292356/32d97ec0-fa9a-11e6-964d-328841e65e1a.png

the image insert in the text

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/daquexian/FlexibleRichTextView/issues/4, or mute the thread https://github.com/notifications/unsubscribe-auth/ALEcnydBWCKSyklPiJi6MCYWx49TQrQTks5rfnMsgaJpZM4MK292 .

daquexian avatar Feb 24 '17 06:02 daquexian

Tokenizer.setIcons(R.drawable.ic_answered); Tokenizer.setIconStrs("answer"); flexibleRichTextView.setText(" answer " + "文件和目录操作最终是与操作系统和文件系统相关的,不同系统的实现是不一样的,但Java中的java.io.File类提供了统一的接口);

the way you recommended can implement this effect, but i can‘t control the icon size, and the distance bewteen icon and text can't been control yet

ningxz avatar Feb 24 '17 07:02 ningxz