Tag

ViewRootImpl

0 views collected around this technical thread.

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.

AndroidPerformance OptimizationPopupWindow
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
Sohu Tech Products
Sohu Tech Products
Jun 16, 2021 · Mobile Development

Understanding the Android Window Mechanism: From PhoneWindow to ViewRootImpl

This article explains the Android Window mechanism in depth, covering the roles of PhoneWindow, WindowManagerImpl, DecorView, ViewRootImpl, and their interactions during Activity startup, view creation, and rendering, with detailed code examples and step‑by‑step analysis.

AndroidMobile developmentPhoneWindow
0 likes · 17 min read
Understanding the Android Window Mechanism: From PhoneWindow to ViewRootImpl
Sohu Tech Products
Sohu Tech Products
Mar 10, 2021 · Mobile Development

Understanding Android SOFT_INPUT_ADJUST Modes: Principles, Implementation and Usage

This article explains the five Android soft‑input adjustment modes (RESIZE, PAN, UNSPECIFIED, NOTHING and the method to obtain the visible window frame), analyzes their underlying ViewRootImpl mechanisms with code examples, and demonstrates practical demos showing how each mode affects layout and scrolling behavior.

AndroidPanResize
0 likes · 20 min read
Understanding Android SOFT_INPUT_ADJUST Modes: Principles, Implementation and Usage