简体   繁体   English

我必须在textview上一一显示所有名称请给出解决方案

[英]I have to display all names one by one on textview please give solution

在我的服务器端数据库中存在 400000 个大学名称,我必须在单个文本视图上同时显示所有名称,请给出解决方案

Without any code no one would be able to help you.没有任何代码,没有人能够帮助您。 But still I am gonna give you some idea on how you can do that.但我仍然会给你一些关于如何做到这一点的想法。 As soon as you get some new record just append the text in TextView :一旦您获得一些新记录,只需在TextView附加文本:

For first time :第一次:

textView.setText("record 1");

after that after getting each record:在获得每条记录之后:

textView.append(textView.getText() + "\n" + "record 2"); // and so on

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我有一个ListView,我可以将所有信息发送到一个TextView并仅基于OnItemClick显示信息吗? - I have a ListView, can I send all the information to one TextView and only display the information based on the OnItemClick? 如何将 Bundle 数据一一显示到 textview? - How can i display Bundle data to textview one by one? 我如何在一个屏幕上拥有一个列表项,一个文本视图和一个按钮 - How can I have a list item and a textview and a button all on one screen 在底部的android中显示一个TextView - Display one TextView in bottom android 在textView中一一显示ArrayList中的值 - Display values in ArrayList one by one in textView 如何在一个textView中显示许多变量 - How to display many variables in one textView 我有一个textview不管我给它什么参数都溢出 - I have an textview that overflows no matter what parameters I give it TextView中的所有定时器都更新的1个定时器object - One timer object that all timers in the TextView are updated 如何在Android中显示两个TextView一个(键)一个(值)? - How to display two TextView one(key) by one(value) in android? 我如何从Firebase数据库中提取三段文本并在一个textView中显示它们? - How would I pull three pieces of text from a firebase database and display them in one textView?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM