[android]代码库
private void initFruits(){
Fruit apple = new Fruit("Apple",R.drawable.conan);
fruitList.add(apple);
Fruit banana = new Fruit("Banana",R.drawable.conan);
fruitList.add(banana);
Fruit orange = new Fruit("Orange",R.drawable.conan);
fruitList.add(orange);
Fruit watermelon = new Fruit("Watermelon",R.drawable.conan);
fruitList.add(watermelon);
Fruit pear = new Fruit("Pear",R.drawable.conan);
fruitList.add(pear);
Fruit grape = new Fruit("Grape",R.drawable.conan);
fruitList.add(grape);
Fruit pineapple = new Fruit("Pineapple",R.drawable.conan);
fruitList.add(pineapple);
Fruit strawBerry = new Fruit("Strawberry",R.drawable.conan);
fruitList.add(strawBerry);
Fruit cherry = new Fruit("Cherry",R.drawable.conan);
fruitList.add(cherry);
Fruit mango = new Fruit("Mango",R.drawable.conan);
fruitList.add(mango);
Fruit peach = new Fruit("Peach",R.drawable.conan);
fruitList.add(peach);
Fruit pepper = new Fruit("Pepper",R.drawable.conan);
fruitList.add(pepper);
}
by: 发表于:2017-12-21 09:50:09 顶(0) | 踩(0) 回复
??
回复评论