Package 

Class MarqueeTextKt

    • Method Summary

      Modifier and Type Method Description
      final static Unit MarqueeText(String text, Modifier modifier, Color color, TextStyle style, TextAlign textAlign, Dp followGap, Dp edgeGradientWidth, Dp marqueeDpPerSecond, Duration pauseTime) Show a single line Marquee text, with a pause (initial and between cycles) and speed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • MarqueeText

        @Composable() final static Unit MarqueeText(String text, Modifier modifier, Color color, TextStyle style, TextAlign textAlign, Dp followGap, Dp edgeGradientWidth, Dp marqueeDpPerSecond, Duration pauseTime)

        Show a single line Marquee text, with a pause (initial and between cycles) and speed.

        Otherwise is mostly the same as the Text composable, without params that don't apply for marquee, such as maxLines.

        Only scrolls if required, and otherwise uses textAlign to show the content in a stationary position.

        Parameters:
        text - The text to be displayed.
        modifier - Modifier to apply to this layout node.
        color - Color to apply to the text.
        style - Style configuration for the text such as color, font, line height etc.
        textAlign - The alignment of the text within the lines of the paragraph.
        followGap - the width between end of each scrolling text and the start of the following one.
        edgeGradientWidth - the width of the fade out zone on the edges, so text isn't cut off harshly.
        marqueeDpPerSecond - the speed of scrolling in dp per second.
        pauseTime - the duration before initially scrolling and each additional scroll.