Tagged articles
5 articles
Page 1 of 1
vivo Internet Technology
vivo Internet Technology
May 18, 2022 · Mobile Development

Optimizing Android PopupWindow and Snackbar UI Thread to Prevent Frame Drops

To eliminate frame drops caused by animated PopupWindow and Snackbar conflicts, the article shows how moving costly view inflation and show/dismiss operations to a dedicated HandlerThread—while still invoking show() on the UI thread—creates a separate UI thread that respects Android’s thread‑checking rules and keeps animations smooth.

AndroidPopupWindowUI Thread
0 likes · 20 min read
Optimizing Android PopupWindow and Snackbar UI Thread to Prevent Frame Drops
Sohu Tech Products
Sohu Tech Products
Apr 6, 2022 · Mobile Development

Complete Guide to Updating UI from Background Threads in Android

This article explains why Android forbids UI updates from background threads, analyzes the underlying framework source code to trace the view hierarchy and thread checks, and presents several techniques—both general and view‑specific—to safely modify UI without triggering exceptions.

AndroidBackground ThreadUI Thread
0 likes · 17 min read
Complete Guide to Updating UI from Background Threads in Android