android - animatorset not animating views sequentially -


i have list of relativelayouts in fragment. wish animate these views sequentially animatorset using playsequentially(). create objectanimator on each of relativelayout's in loop. want layouts animate bottom of fragment 1 after other. @ minute first relativelayout animating , iam not sure why? rest of layout remain still. below code.

        animatorset myanimset;         list<animator> animlist = new list<animator>();          (int = 0; < count; i++)         {              //resources drawables in list              animatedviews[i].setbackgroundresource(resources[i]);              //animatedviews list of relativelayouts              objectanimator animator = objectanimator.offloat(animatedviews[i], "translationy", 800f, 0f);             animator.setduration(2000);                      animator.repeatmode = valueanimatorrepeatmode.restart;             animator.repeatcount = valueanimator.infinite;             animlist.add(animator);               }          myanimset = new animatorset();         myanimset.playsequentially(animlist.toarray());         myanimset.start(); 

i think code looks okay? seen 1 layout being animated i'am wondering if issue passing relativelayouts in list? if has greater insight animatorset , can tell me im doing wrong id appreciate it. thanks!


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -