How to determine the ultimate listener for marquee text?

I use a text view and I gave elipzize = marquee, and not that the line I ever provide to this text view ever scrolls horizontally, but my problem is that I need to determine if the selection text is complete and If you want to load the next line, I gave the brand forever, so I do not want the text to continue to work. I want to change two things in the text, so you need to find out when it will end.

see here xml here

<TextView android:id="@+id/push_message" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_gravity="center_vertical" android:background="#85000000" android:ellipsize="marquee" android:fadingEdge="horizontal" android:textDirection="anyRtl" android:marqueeRepeatLimit="marquee_forever" android:maxLines="1" android:paddingBottom="5dp" android:paddingRight="5dp" android:paddingTop="5dp" android:scrollHorizontally="true" android:singleLine="true" android:textColor="#ffffff" tools:ignore="EllipsizeMaxLines" /> 

Please tell me how to determine if the selection text ends at the end of the selection text? I need to call some other evnet

Thank you in advance

+5
source share

Source: https://habr.com/ru/post/1274037/


All Articles