Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3433980
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T07:38:32+00:00 2026-05-18T07:38:32+00:00

i have a scrollview ,it include one textView, the textView have many lines,in other

  • 0

i have a scrollview ,it include one textView, the textView have many lines,in other word the
textView entire screen size, if i want to see all strings in the textView,i need scroll the scrollbar,but i donot want to so,i want the textView or the screen automatic moving upwards interval for a period of time ,so that don’t need user operations, how to realize it Looks like ebook effect?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T07:38:32+00:00Added an answer on May 18, 2026 at 7:38 am

    If I understand correctly you want an auto scrolling TextView, like a marquee right?

    You can use Labeeb approach but the problem there is that you don’t know beforehand the size of the screen.

    First, You will need to create a timer in the onCreate method of your activity to run in background. It should run in a separate thread not to block your UI.
    Use schedule(TimerTask task, long delay, long period) setting the delay and period to the same amount. (or not its up to you).

    You can use the Scroller class to initiate and control a scrolling event. You can set the scroll distance, the scrolling starting position, the end position, and so on. Ideally, you should create an algorithm to calculate the “amount of scrolling” given a screnn size. You can, however, scroll a fixed number of lines that would be < than the number of lines a small 2” screen has (I think those are roughly the smaller android device screens).

    Finally, use the timer to fire the Scrolling Method (task) you just created.

    Not so good but also works (kinda!)
    You can also use the built in android marquee property. It can simulate the desire effect.

    android:marqueeRepeatLimit="int"
    
    android:ellipsize="marquee"
    

    But it scrolls horizontaly and runs continuously.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a scrollView. i want it to scroll only in one direction(VERTICAL). Is
I have a UIScrollView which I create and size dynamically using... scrollView.contentSize = CGSizeMake(scrollView.frame.size.width
I have a scrollview and I only want an event to happen if it's
Actually i want to implement swipe left and right in UIScrollview. i have scrollview
i have a scrollview and a textview above it. the textview's scroll is disable.
I have a scrollview. A scrollview can only contain one element so I put
I have a scrollview with 25 pages (pagingEnabled) and i want to put a
I have a scrollview control that has a StackPanel (Orientation=Vertical) UI Element inside of
I have an app which contains a scrollview with several tableviews. Each tableview is
I have an app that shows a series of UIImageView s on a ScrollView

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.