horizontal textView autoscrolling doesn't work (singleLines deprecated)
<blockquote>
  <p>The aim is to make any text scroll automatically and horizontally inside a textview. I have tried to find the way, but the best my result looks like: xml</p>
</blockquote>

<pre><code>&lt;TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:id="@+id/text_album_artist_title"
        android:gravity="center"
        android:text="Single-line text view that scrolls automatically if the text is too long to fit in the widget"
        android:maxLines="1"
        android:ellipsize="marquee"
        android:marqueeRepeatLimit ="marquee_forever"
        android:focusable="true"
        android:focusableInTouchMode="true"
        android:scrollHorizontally="true"
        /&gt;
</code></pre>

<blockquote>
  <p>code</p>
</blockquote>

<pre><code>textViewSongTitleAlbumArtist = (TextView) v.findViewById(R.id.text_album_artist_title);
    textViewSongTitleAlbumArtist.setSelected(true);
</code></pre>

<blockquote>
  <p>It works, the text scrolls and everything is ok, but when I try to change the textview, it stops working. The xml is the same and the code is different:</p>
</blockquote>

<pre><code>textViewSongTitleAlbumArtist = (TextView) v.findViewById(R.id.text_album_artist_title);
    textViewSongTitleAlbumArtist.setSelected(true);
    textViewSongTitleAlbumArtist.setText(musicSrv.getCurrentPlayingSong().mTitle + " " +
            musicSrv.getCurrentPlayingSong().mArtist + " " + musicSrv.getCurrentPlayingSong().mAlbum);
</code></pre>

<blockquote>
  <p>So I want to make any text that I set into a textview to scroll horizontally, automatically and unlimited number of times.</p>
</blockquote>