I have a list Activity 4 which i have extended the BaseAdapter and the getview looks like this…
public View getView(int position, View convertView, ViewGroup parent) {
View row=null;
for(int i=0;i<10;)
{
row = convertView;
if(row==null)
{
LayoutInflater inflater = mContext.getLayoutInflater();
row = inflater.inflate(R.layout.parsed,null);
}
TextView id = (TextView)row.findViewById(R.id.id);
id.setText(idvector.elementAt(position));
TextView photo = (TextView)row.findViewById(R.id.photo);
photo.setText(photovector.elementAt(position));
TextView subcategory = (TextView)row.findViewById(R.id.subcategory);
subcategory.setText(subcategoryvector.elementAt(position));
TextView name = (TextView)row.findViewById(R.id.name);
name.setText(namevector.elementAt(position));
}
return(row);
}
}
now my problem is that the list is not giving all the values of the vector and nor is it scrolling.. how to make my list Scrollable???
sorry guys… very very sorry… so foolish of me… i had not changed the following code… sorry guys 4 wasting a lot f ur precious time…
Thanx a lot Ramps… i’m going to implement the procedure u showed…