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
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?
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
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.
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
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
Awesome! I like small series' like these rather than a whole functioning app
thanks my friend
They are very productive guides .... But can you please create a playlist to watch all the related videos
Thank you so much, it's very functional and very easy
Super cool
Good tutorial, clear my doubts, keep rocking, all the best, thank you.
thanks for this video. This is very usefull for my project. Greetings from Chile!
its amazing,thank you brother
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
Nice but animations only work once .
Thank you so much..
But i have a problem is that this animation loads only for the first time item loads
did you solved ?
I too had the same problem
Nice animation. I got stuck in an issue. How can we remove animation after notifyItemChanged(position); The item is re animated.
Thank you very much. This help me a lot !! ^^
Thank you very mutch
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?
It only animates when the recyclerView is being filled the first time, not when scrolling. What do I do?
import android.view.animation.AnimationUtils;
THis right here is exactly the class you should import.....
amazingly )!
Awesome 👌
ty bro
my animation not working when scrolling up
tnx for ur help..
amazing man ! it looks cool !
thanks i will upload another part where i ll create a dark/night theme
InstaSub!!! Congrats
thanks genius!!! awesome
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
thank you so much
Great ! Thanks !
thanks bro
This is amazing! thank you so much!
Someone can help me of some logic or sugestion to animate only 'unique' items from recyclerView ?
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.
what does this mean? " java.lang.ClassCastException: java.util.HashMap cannot be cast to com.example.****.Models.Comments"
thank you.
nice video but the content layout was coming so large and the animation shows error
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
pls help
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.
sure my friend
How can I set onclick lister for each item?
item view.setonclick listener in the view holder class
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
yes why not
Good job man, I really like your videos!
hermoso
Pls provide the code also
next part my friend