Learn how to create an awesome loading animation in Sketchware App! This step-by-step tutorial will show you how to add a professional touch to your app. Perfect for beginners and intermediate users. Don't miss out on this must-watch tutorial! #Sketchware #LoadingAnimation #AppDevelopment"
Codes
///For Loading animation (Recyclerview)
1. Add this code through source code block
new_updates.addOnScrollListener(new RecyclerView.OnScrollListener() {
@Override
public void onScrolled(@NonNull RecyclerView recyclerView, int dx, int dy) {
super.onScrolled(recyclerView, dx, dy);
if (! recyclerView.canScrollVertically(1))
{
Parcelable state =
new_updates.getLayoutManager().onSaveInstanceState();
2. more block which showed in picture
3. Add this code on last
new_updates.getLayoutManager().onRestoreInstanceState(state);
} } });
4. Done
Thanks 😊
wdwwwdd
ReplyDelete