Is it possible to get array of views from onItemSelected()? because I need to set animation for current view and clear the animation from other views, is it possible?
@Override
public void onItemSelected(AdapterView<?> adV, View view, int currentIndex, long l)
{
view.startAnimation(AnimationUtils.loadAnimation(currentContext, R.anim.scale_anim));
adV[currentIndex + 1].clearAnimation();
adV[currentIndex - 1].clearAnimation();
}
catch NullPointerException? Are you serious?