android - I want to achieve the countdown Numbers up fly in and fly out of the effect -
i want achieve countdown numbers fly in , fly out, realize numbers down fly in , fly out,here code
index current number,mcurrentitemidx last number,itemcount total of how many number
int itemstoscroll = index - mcurrentitemidx; if (miscyclic) { int scroll = itemcount + math.min(index, mcurrentitemidx) - math.max(index, mcurrentitemidx); if (scroll < math.abs(itemstoscroll)) { itemstoscroll = itemstoscroll <0 ? scroll : -scroll; } } scroll(itemstoscroll, 0, notify);//slide distance of itemstoscroll
Comments
Post a Comment