挽
什么?没有15字?骚年,你太单纯了,看看我的身后。
public View getView(int arg0, View arg1, ViewGroup arg2) {View v=getLayoutInflater().inflate(R.layout.stuitem, null);final Student stu=dao.queryAll().get(arg0);TextView name=(TextView) v.findViewById(R.id.txtname);TextView age=(TextView) v.findViewById(R.id.txtage);TextView addr=(TextView) v.findViewById(R.id.txtaddr);Button butupd=(Button) v.findViewById(R.id.butupdate); butupd.setOnClickListener(new OnClickListener() {@Overridepublic void onClick(View arg0) { Intent intent=new Intent(); intent.setClass(ShowActivity.this, UpdateActivity.class); Bundle bundle=new Bundle(); bundle.putInt("stuid", stu.getId()); bundle.putString("stuname", stu.getStuname()); bundle.putInt("stuage", stu.getStuage()); bundle.putString("stuaddr", stu.getStuaddr()); intent.putExtras(bundle); startActivity(intent);}});