Posts

MAKE SLIDING TEXT IN TEXTVIEW || ANDROID STUDIO || KOTLIN





STEP 1 :  CREATE NEW PROJECT WITH EMPTY ACTIVITY.


STEP 2 : ADD FOLLOWING CODE :


XML CODE :

    <TextView
        android:id="@+id/textview"
        android:text="THIS IS MARQUEE TEXT . SUBSCRIBE OUR CHANNEL FOR MORE INTRESTING VIDEOS :-)"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="200dp"
        
        android:textColor="#000000"
        android:textSize="20dp"
        android:textStyle="bold"
        android:singleLine="true"
        android:ellipsize="marquee"
        android:marqueeRepeatLimit="marquee_forever"
        android:scrollHorizontally="true" 
        />

KOTLIN CODE :  textview.setSelected(true)

Done . Run App
Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.