Android 拖动图片特效(三)

2014-11-24 11:42:24 · 作者: · 浏览: 10
ate Resources getResources()
{
// TODO Auto-generated method stub
return null;
}

public int getCount()
{
return mImageIds.length;
}

public Object getItem(int position)
{
return position;
}

public long getItemId(int position)
{
return position;
}

public View getView(int position, View convertView, ViewGroup parent)
{
return mImages[position];
}

public float getScale(boolean focused, int offset)
{
return Math.max(0, 1.0f / (float) Math.pow(2, Math.abs(offset)));
}
}