简体   繁体   中英

Android Studio - Scrolling page with multiple textviews

To help with the explanation of what I'm trying to do I'll use the example of twitter (RSS feed concept).

A single activity with multiple bodies of text that all move simultaneously on the page.

I understand how to use a scroll view, however this only allows for one scrolling body of text. What I'm seeking is all textviews to scroll collectively as I move up or down the page.

Thanks,

Aaron

This behaviour what you described is exactly the function of a ListView . If you never used it before, take a look at this tutorial for example: http://androidexample.com/Create_A_Simple_Listview_-_Android_Example/index.php?view=article_discription&aid=65&aaid=90

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM