且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Jsoup显示数据的TextView

更新时间:2023-01-16 09:49:11

好像要从元素的列表打印文本值。要做到这一点,你需要遍历元素的列表,并获取文本了出来。

Seems as if you want to print the text values from a list of Elements. To do so you need to iterate over the list of Elements and get the text out of them.

   StringBuilder text = new StringBuilder();
   for(Element e: data){
       text.append(e.text());
   }
   Textview1.setText(text.toString());