|
|
@@ -21,7 +21,7 @@ public class wl_adapter extends ArrayAdapter<BPA_MATERIAL> { |
|
|
|
@NonNull |
|
|
|
@Override |
|
|
|
public View getView(int position, @Nullable View convertView, @NonNull ViewGroup parent) { |
|
|
|
BPA_MATERIAL data = (BPA_MATERIAL) getItem(position);//得到当前项的 Fruit 实例 |
|
|
|
BPA_MATERIAL data = (BPA_MATERIAL) getItem(position);//得到当前项选中item实例 |
|
|
|
//为每一个子项加载设定的布局 |
|
|
|
View view = LayoutInflater.from(getContext()).inflate(R.layout.wl_item, parent, false); |
|
|
|
//分别获取 image view 和 textview 的实例 |
|
|
|