2
正尝试使用此myGallery.setSelection(5, true);
(Gallery.setSelection(Position, Animate);),其中5是请求的位置。图库精选位置动画
这个方法应该动画画廊,直到新的选定的位置显示?或者直接跳到选定的位置?
因为当我使用它,没有动画发生!
正尝试使用此myGallery.setSelection(5, true);
(Gallery.setSelection(Position, Animate);),其中5是请求的位置。图库精选位置动画
这个方法应该动画画廊,直到新的选定的位置显示?或者直接跳到选定的位置?
因为当我使用它,没有动画发生!
为项目选定的侦听器设置动画。该动画只会调用选定的图库项目。
myGallery.setOnItemSelectedListener(new OnItemSelectedListener(){
@Override
public void onItemSelected(AdapterView<?> arg0, View arg1,int arg2, long arg3) {
arg1.setAnimation(AnimationUtils.loadAnimation(this, R.anim.scale_img));
}
});
这会帮助你。