我想创建一个 lwuit 列表屏幕,列表项从 Rss Feed 连续循环进入我的方法,但我能够从 rss Feed 附加 1 个标题并能够在设备上显示,之后 2、3、4等...项目正在改变,但最后,我只能显示 1 个标题和最后一个标题,这是我的代码:
//method called by the parsing thread
public void addNews(News newsItem,Vector news) {
String newsArray[]={newsItem.getTitle()};
myNewsList = new List(newsArray);
System.out.println(newsItem.getTitle());//Here i am able to display,second title after that,it is not appending adding to myNewsList
//myNewsList.addItem(newsItem.getTitle());
form1.addComponent(myNewsList);
form1.show();
}
你能帮我吗?