我正在使用Eclipse的PyDev for tensorflow版本:0.12.1
我直接从tensorflow文档中复制示例代码,
但找不到属性并返回
bi ^. bookerContact . _Just . fullName
尝试重新下载pydev和tensorflow,但没有一个工作
源代码:
@Override
public View getView(int i, View view, ViewGroup viewGroup) {
//If view not created, inflate the view
ViewHolder viewHolder;
if(view == null){
viewHolder = new ViewHolder();
LayoutInflater inflater = (LayoutInflater) currentContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
view = inflater.inflate(R.layout.user_item, null);
//attach the ViewHolder to this view
viewHolder = new ViewHolder();
viewHolder.userName = (TextView) view.findViewById(R.id.uNameTextView);
viewHolder.userAge = (TextView) view.findViewById(R.id.uAgeTextView);
view.setTag(viewHolder);
}
else{
//View already created
viewHolder = (ViewHolder) view.getTag();
}
viewHolder.uName.setText(userList.get(i).getUserName());
viewHolder.uAge.setText(userList.get(i).getUserAge());
return view;
}