Android example of updating textview
To display long lists of items, or images, consider using a Recycler View.
Also, using Async Task provides a simple way to perform work outside the main thread, such as loading images in a background thread, then applying them to the UI once finished. To show a scrollable magazine article on the screen, you might use a Relative Layout for the screen that includes a separate Text View for the article heading, another for the article subheading, and a third Text View for the scrolling article text (see figure below), set within a Scroll View.
Even though you can place only one child view inside a Scroll View, the child view could be a view group with a hierarchy of child views, such as a Linear Layout.
This makes Scroll View useful for smoothly scrolling pages of free-form text, because the text is already in memory.
The Scroll View class provides the layout for a vertical scrolling view.
(For horizontal scrolling, you would use Horizontal Scroll View.) Scroll View is a subclass of Frame Layout, which means that you can place only view as a child within it; that child contains the entire contents to scroll.
Text lines in the file don't wrap around to the next line — they extend beyond the right margin. Each new line of text starting at the left margin represents an entire paragraph.
Enter \n to represent the end of a line, and another \n to represent a blank line.