修改了一部分代码,使用listview实现了浏览信息

my
盛洁 5 years ago
parent 55e289cf11
commit 31d74910aa

@ -9,9 +9,10 @@ import java.util.ArrayList;
import hunnu.sj.raise_money.DataBase.UserService; import hunnu.sj.raise_money.DataBase.UserService;
public class NewsUtils { public class NewsUtils {
public static void getAllNews(Context context,ArrayList<News> list){//从数据库获取信息到本地 public static int getAllNews(Context context,ArrayList<News> list){//从数据库获取信息到本地
UserService uService = new UserService(); UserService uService = new UserService();
uService.getAllNews(context,list); uService.getAllNews(context,list);
return 1;
/*for(int i = 0 ;i <100;i++) /*for(int i = 0 ;i <100;i++)
{ {
News news = new News(); News news = new News();

Loading…
Cancel
Save