@Override
public View getView(int position, View convertView, ViewGroup parent) {
View layout = convertView;
if (convertView == null) {
layout = inflater.inflate(R.layout.complex1, null);
AphidLog.d("created new view from adapter: %d", position);
}
final Travels.Data data = travelData.get(position % travelData.size());
UI.<TouchImageView> **findViewById**(layout, R.id.photo).setImageBitmap(
IO.readBitmap(inflater.getContext().getAssets(),
data.imageFilename));
return layout;
}
findViewById 时出错。 我不知道。帮助我解决。 有显示:
类型findViewById(View, int)
Contacts.Intents.UI
未定义
答案 0 :(得分:0)
而不是finViewById()
使用layout.findViewById()
,而View
将通过View layout
上的ID搜索{{1}}。