Hi i want to know how the handle events ,such as selected item in the Custom List,
How To get the position ,name of selected item in customList
Regards Rakesh shankar.P
public class Adapter extends BaseAdapter{
int count=0; Context ctx;
List<InfoObject> obs;
Adapter(Context ct,List<InfoObject> cols)
{
ctx=ct;
obs=cols;
}
@Override
public int getCount() {
// TODO Auto-generated method stub
return obs.size();
}
@Override
public Object getItem(int position) {
// TODO Auto-generated method stub
return position;
}
@Override
public long getItemId(int position) {
// TODO Auto-generated method stub
return position;
}
@Override
public View getView(int position, View convertView, ViewGroup parent)
{
// TODO Auto-generated method stub
count++;
Log.v("Count", String.valueOf(count));
InfoObject obj=obs.get(position);
return new ObjectAssigner(ctx,obj);
}
}