我想animate
向ListView
某方向的方向箭头 @Override
public View getView(int position, View convertView, ViewGroup parent) {
View row = convertView;
if(row == null)
{
LayoutInflater inflater = ((Activity)context).getLayoutInflater();
row = inflater.inflate(layoutResourceId, parent, false);
holder = new DataHolder();
holder.imgIcon = (ImageView)row.findViewById(R.id.imgIcon);
holder.locationName = (TextView)row.findViewById(R.id.locationName);
holder.locationElevation = (TextView)row.findViewById(R.id.locationElevation);
heading = getHeading();
row.setTag(holder);
}
else
{
holder = (MountainHolder)row.getTag();
}
Loc loc = data[position];
holder.locationName.setText(loc.locationName);
holder.locationElevation.setText(loc.locationElevation);
holder.imgIcon.setImageResource(loc.icon);
return row;
}
。类似于您在GPS中看到的内容(当车辆改变方向时箭头移动)。
holder.image
最初我向{{1}}添加了一个动画,但它动画了所有动画(不是单独动画)。 PS,图像是箭头。我有标题值我只需要知道如何根据该信息设置这些箭头的动画。有什么想法吗?