litho
litho copied to clipboard
TextUtils.TruncateAt.MARQUEE not work
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?
Looks like Text never support MARQUEE before. You might need to implement your own MountSpec that wraps a native TextView with MARQUEE enabled.