litho icon indicating copy to clipboard operation
litho copied to clipboard

TextUtils.TruncateAt.MARQUEE not work

Open yljjiava opened this issue 6 years ago • 1 comments

My code like this: ... final Component component = Text.create(context) .isSingleLine(true) .ellipsize(TextUtils.TruncateAt.MARQUEE)//marquee not working .text("Hello World") .widthDip(100) .textSizeDip(30) .selected(true) .focusable(true) .build(); setContentView(LithoView.create(context, componentList)); ...

why the text content not marqueen?

yljjiava avatar Apr 24 '19 03:04 yljjiava

Looks like Text never support MARQUEE before. You might need to implement your own MountSpec that wraps a native TextView with MARQUEE enabled.

wujingwe avatar Apr 25 '19 04:04 wujingwe