facebook / litho

A declarative framework for building efficient UIs on Android.
https://fblitho.com
Apache License 2.0
7.71k stars 766 forks source link

TextUtils.TruncateAt.MARQUEE not work #539

Open yljjiava opened 5 years ago

yljjiava commented 5 years ago

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?

wujingwe commented 5 years ago

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