Tag

StaggeredGridLayoutManager

0 views collected around this technical thread.

Sohu Tech Products
Sohu Tech Products
Sep 5, 2024 · Mobile Development

Implementing a Simple Danmu (Bullet Screen) Effect Using RecyclerView and StaggeredGridLayoutManager in Android

The article demonstrates how to create a lightweight, infinite‑scrolling danmu (bullet‑screen) effect in Android by embedding a RecyclerView inside a custom DanMuView, using StaggeredGridLayoutManager for multi‑row layout and a scrollBy‑based Runnable to continuously scroll and control speed.

BulletScreenKotlinRecyclerView
0 likes · 10 min read
Implementing a Simple Danmu (Bullet Screen) Effect Using RecyclerView and StaggeredGridLayoutManager in Android
JD Retail Technology
JD Retail Technology
May 18, 2020 · Mobile Development

Resolving List Reordering and Top Blank Space Issues in Android StaggeredGridLayoutManager

This article analyzes why StaggeredGridLayoutManager can cause item reordering and blank gaps at the top of a RecyclerView, explains the underlying measurement and layout mechanisms, and presents code‑level solutions such as disabling gap handling, invalidating span assignments, and using notifyItemRangeChanged instead of notifyDataSetChanged.

RecyclerViewStaggeredGridLayoutManagerandroid
0 likes · 11 min read
Resolving List Reordering and Top Blank Space Issues in Android StaggeredGridLayoutManager