这是我的baseadapter代码
pagenumber.textProperty().bind(currentpage);
这是我的主类代码
ObservableValue <? extends String >
我的代码出错...
请告诉我这个问题在哪里....如果这个问题解决了......
我需要更多帮助...如何从多个复选框中获取价值?
抱歉,这是错误消息
public class ListAdapter extends BaseAdapter{
public ArrayList<HashMap<String,String>> list;
Activity activity;
public ListAdapter(Activity activity, ArrayList<HashMap<String, String>>list ) {
// TODO Auto-generated constructor stub
super();
this.activity=(Activity)activity;
this.list=list;
}
public int getCount() {
return list.size();
}
public Object getItem(int position) {
// TODO Auto-generated method stub
return list.get(position);
}
public long getItemId(int arg0) {
// TODO Auto-generated method stub
return 0;
}
private class ViewHolder {
TextView kd_matkul;
TextView nm_matkul;
TextView dosen;
TextView sks;
}
public View getView(int position, View convertView, ViewGroup parent) {
// TODO Auto-generated method stub
ViewHolder holder;
LayoutInflater inflater = activity.getLayoutInflater();
if (convertView == null)
{
convertView = inflater.inflate(R.layout.list_matkul, null);
holder = new ViewHolder();
holder.kd_matkul = (TextView) convertView.findViewById(R.id.kd_matkul);
holder.nm_matkul = (TextView) convertView.findViewById(R.id.nm_matkul);
holder.dosen = (TextView) convertView.findViewById(R.id.dosen);
holder.sks = (TextView) convertView.findViewById(R.id.sks);
convertView.setTag(holder);
}
else
{
holder = (ViewHolder) convertView.getTag();
}
HashMap<String, String> item = list.get(position);
String kd_matkul = item.get("kd_matkul");
String nm_matkul = item.get("nm_matkul");
String dosen = item.get("nm_dosen");
String sks = item.get("sks");
holder.kd_matkul.setText(kd_matkul);
holder.nm_matkul.setText(nm_matkul);
holder.dosen.setText(dosen);
holder.sks.setText(sks);
return convertView;
}
}