这些操作需要在adapter中修改即可,首先要在adapter中设置一个位置变化函数,在getview中进行代码设置
public void setposition(int index){
this.index = index;
}
@Override
public View getView(int position, View convertView, ViewGroup parent) {
// TODO Auto-generated method stub
ViewHolder viewHolder;
if (convertView == null) {
convertView = mInflater.inflate(R.layout.vod_bought_item, null);
viewHolder &