RecyclerView Item Animation Part 3 : Create & Apply Animations | Android Studio Tutorial

Поделиться
HTML-код
  • Опубликовано: 2 дек 2024

Комментарии • 49

  • @nileshsolanki682
    @nileshsolanki682 5 лет назад +4

    Awesome! I like small series' like these rather than a whole functioning app

    • @AwsRh
      @AwsRh  5 лет назад +1

      thanks my friend

  • @neerajpatel3928
    @neerajpatel3928 5 лет назад +1

    They are very productive guides .... But can you please create a playlist to watch all the related videos

  • @tharindumadushan1569
    @tharindumadushan1569 2 года назад

    Thank you so much, it's very functional and very easy

  • @umbertohe5723
    @umbertohe5723 5 лет назад +1

    Super cool

  • @rajm2671
    @rajm2671 5 лет назад

    Good tutorial, clear my doubts, keep rocking, all the best, thank you.

  • @prezdev6699
    @prezdev6699 5 лет назад

    thanks for this video. This is very usefull for my project. Greetings from Chile!

  • @farashmk126
    @farashmk126 4 года назад

    its amazing,thank you brother

  • @VideoDiaries88
    @VideoDiaries88 4 года назад

    Thanks for this video sir
    But i am fasing an issue when i create a splash activity to make a splash screen but after splash screen main activity doesn't open...plese help

  • @xototljeb921
    @xototljeb921 4 года назад +2

    Nice but animations only work once .

  • @khalidalsaleh8883
    @khalidalsaleh8883 5 лет назад +2

    Thank you so much..
    But i have a problem is that this animation loads only for the first time item loads

  • @MrDeviledge
    @MrDeviledge 4 года назад

    Nice animation. I got stuck in an issue. How can we remove animation after notifyItemChanged(position); The item is re animated.

  • @pondpondnaja
    @pondpondnaja 4 года назад

    Thank you very much. This help me a lot !! ^^

  • @MrLOLs1
    @MrLOLs1 4 года назад

    Thank you very mutch

  • @mehedihasanemon6691
    @mehedihasanemon6691 4 года назад

    my recycler view animate only when open activity then scroll down animate but scroll up not animating if I close activity then open again then it animates again but only scroll down but not in all time. i load data from firebase that's why I use notified data set change to the adapter, how to solve that problem? any suggestion?

  • @numalesoybea1348
    @numalesoybea1348 4 года назад

    It only animates when the recyclerView is being filled the first time, not when scrolling. What do I do?

  •  5 лет назад

    import android.view.animation.AnimationUtils;
    THis right here is exactly the class you should import.....

  • @khametoff6386
    @khametoff6386 4 года назад

    amazingly )!

  • @firazpeerjade
    @firazpeerjade 5 лет назад

    Awesome 👌

    • @AwsRh
      @AwsRh  5 лет назад

      ty bro

  • @TechUstadofficial
    @TechUstadofficial 4 года назад

    my animation not working when scrolling up

  • @md.asrafuzzaman1363
    @md.asrafuzzaman1363 5 лет назад

    tnx for ur help..

  • @LinhNguyen-wp6pi
    @LinhNguyen-wp6pi 5 лет назад

    amazing man ! it looks cool !

    • @AwsRh
      @AwsRh  5 лет назад

      thanks i will upload another part where i ll create a dark/night theme

  • @francescomarzo307
    @francescomarzo307 4 года назад

    InstaSub!!! Congrats

  • @jokerfr9866
    @jokerfr9866 5 лет назад

    thanks genius!!! awesome

  • @eventurersmobiletesting3734
    @eventurersmobiletesting3734 3 года назад

    It seems items in recycle view loading every time when scrolling up. Is there any ways to prevent animation for already loaded items???
    If so plz let me know folks

  • @Quang1498
    @Quang1498 4 года назад

    thank you so much

  • @nelsonantonio5870
    @nelsonantonio5870 5 лет назад

    Great ! Thanks !

    • @AwsRh
      @AwsRh  5 лет назад +1

      thanks bro

  • @raf.nogueira
    @raf.nogueira 5 лет назад +1

    This is amazing! thank you so much!
    Someone can help me of some logic or sugestion to animate only 'unique' items from recyclerView ?

    • @syedwasay3087
      @syedwasay3087 3 года назад

      I think so its possible on the binder method, when you get the data instance for a view before binding to it you can check its content if it matches to your condition you can use a different animation on it else you keep using the default animation in else block , e.g code flow below.
      public void onBindViewHolder(@NonNull @NotNull RecyclerView.ViewHolder holder, int position) {
      ViewHolderClass viewHolderClass=(ViewHolderClass)holder;
      dataclass object= obj_list.get(position);
      if(object.getage>10)
      viewHolderClass.age.setText(object.getage())
      viewHolderClass.age.setAnimation(AnimationUtils.loadAnimation(viewHolderClass.name.getContext(), R.anim.fade));
      else
      {
      viewHolderClass.age.setText(object.getage())
      viewHolderClass.age.setAnimation(AnimationUtils.loadAnimation(viewHolderClass.name.getContext(), R.anim.fade_scale_animation));
      }
      Try it out and let me know.

  • @calinonaca1438
    @calinonaca1438 5 лет назад

    what does this mean? " java.lang.ClassCastException: java.util.HashMap cannot be cast to com.example.****.Models.Comments"

  • @h3w45
    @h3w45 5 лет назад

    thank you.

  • @ushameghana6337
    @ushameghana6337 5 лет назад

    nice video but the content layout was coming so large and the animation shows error

  • @ivillage5872
    @ivillage5872 5 лет назад

    hello bro its stopping at run time on the android device with error keeps stopping but when i take off this code(holder.container.setAnimation(AnimationUtils
    .loadAnimation(mContext,R.anim
    .fade_scale_anim))) then it runs but no animation any idea pls assist thks

  • @Azad7261
    @Azad7261 5 лет назад

    Care to upload the source code on github? I can't find it anywhere in your github list of repositories. Thanks for the wonderful video series.

    • @AwsRh
      @AwsRh  5 лет назад

      sure my friend

  • @eugenekaisha6292
    @eugenekaisha6292 5 лет назад

    How can I set onclick lister for each item?

  • @eliasb3857
    @eliasb3857 5 лет назад

    Good one but IMHO it's better to only show animation the first time you scroll down and not when you go back up. So the user can know that he already saw that part

    • @AwsRh
      @AwsRh  5 лет назад

      yes why not

    • @eliasb3857
      @eliasb3857 5 лет назад

      Good job man, I really like your videos!

  • @willysalazar1170
    @willysalazar1170 4 года назад

    hermoso

  • @afifshaikh9244
    @afifshaikh9244 5 лет назад

    Pls provide the code also

    • @AwsRh
      @AwsRh  5 лет назад

      next part my friend