android:marqueeRepeatLimit - Limit the Number of Times a Marquee is repeated in a TextView/EditText

How to Limit the Number of Times a Marquee is repeated in a  TextView/EditText

android:marqueeRepeatLimit was added in API Level 2.

1. Add a Scrolling Marquee in your main.xml file.

2. In the main.xml file, add the code below.

<TextView
               ...
android:marqueeRepeatLimit = "2"
/>