How to Make Marquee Text in AndroidIde



XML
<TextView
		android:id="@+id/marqueeText"
		android:layout_width="match_parent"
		android:layout_height="wrap_content"
		android:layout_marginTop="25sp"
		android:ellipsize="marquee"
		android:marqueeRepeatLimit="marquee_forever"
		android:padding="10dp"
		android:scrollHorizontally="true"
		android:singleLine="true"
		android:text="Hello guys !! Welcome to GeeksforGeeks Portal !!"
		android:textSize="20sp"
		android:textStyle="bold" /> 
Java
*****AppCompatActivity
  
   TextView txtMarquee; 
Java
*****setContentView*********
 
       
        txtMarquee = (TextView) findViewById(R.id.marqueeText); 
          
        // Now we will call setSelected() method 
        // and pass boolean value as true 
        txtMarquee.setSelected(true);

একটি মন্তব্য পোস্ট করুন