在Fragment类中设置自定义对话框,在此对话框中放置列表视图并设置值。但是我的适配器类getView()
方法崩溃了。 (ResourcesNotFoundException
)
@Override
public View getView(final int i, View view, ViewGroup viewGroup) {
ViewHolder viewHolder;
if(view==null) {
viewHolder=new ViewHolder();
view = ((LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE)).inflate(R.layout.partner_citylistitem, null);
viewHolder.firstName = (TextView) view.findViewById(R.id.partnercityvalue);
view.setTag(viewHolder);
} else {
viewHolder=(ViewHolder)view.getTag();
}
viewHolder.firstName.setText(datas.get(i).getCity());
return view;
}
public class ViewHolder {
TextView firstName;
}
答案 0 :(得分:0)
试试这个
with open(File,'rb') as csvinput,open(output, 'wb') as csvoutput:
并检查数据值