The fact is that I have a player and a running line should go over it. I tried all possible options. This option is android:ellipsize="marquee" with TextView If the video does not play, it works fine, as soon as the video plays, then everything starts to stand still and shake. That is stupidly twitches on the spot. Tried on WebView , html <marquee behavior='scroll' direction='left' scrollamount=5> It works only by tweaking every millisecond. But moving to the left.

UPD: On the phone webWiew works without lags and smoothly. Only on Android Prefix so lags.

How to be, are there any other options besides these?

  • can any like this - pavlofff
  • Yes, I also tried it, and my custom TextView, to no avail ( - DevOma

1 answer 1

Try creating a separate class derived from TextView, implement 3 methods onFocusChanged, onWindowFocusChanged, isFocused , so that the TextView is always in focus.

 @Override protected void onFocusChanged(boolean focused, int direction, Rect previouslyFocusedRect) { if(focused) super.onFocusChanged(focused, direction, previouslyFocusedRect); } @Override public void onWindowFocusChanged(boolean focused) { if(focused) super.onWindowFocusChanged(focused); } @Override public boolean isFocused() { return true; } 

Link to the original answer here .