Tagged articles
6 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
Meituan Technology Team
Meituan Technology Team
Mar 29, 2018 · Mobile Development

Solving Android Toast Restrictions and Crash Issues

To avoid crashes and missing messages caused by newer Android restrictions on Toast—such as disabled notifications, BadTokenException on pre‑8.0 devices, and token‑null errors on Android 7.1—developers intercept Toast.show with AspectJ, replace it with a custom MToast, handle exceptions, and ultimately migrate to a robust Snackbar‑based notification system.

AndroidCrashMobile Development
0 likes · 18 min read
Solving Android Toast Restrictions and Crash Issues
Tencent Music Tech Team
Tencent Music Tech Team
Jan 19, 2018 · Mobile Development

Analyzing and Solving Android Toast Issues with Snackbar and View System

The article examines Android Toast crashes, explains the system‑level window and drawing lifecycle, and proposes safer alternatives by replacing Toast with a Snackbar or custom view hierarchy, using parent‑finding logic, weak‑reference management, and a protective handler wrapper to prevent exceptions.

AndroidHandlerLifecycle
0 likes · 17 min read
Analyzing and Solving Android Toast Issues with Snackbar and View System
网易UEDC
网易UEDC
Mar 22, 2017 · Frontend Development

Mastering Overlay Layers: Dialogs, Toasts, and Snackbars Explained

This article defines overlay layers, compares dialog boxes, toasts, and snackbars, outlines their modal and non‑modal variants, usage scenarios, design tips, advantages, and drawbacks, helping designers choose the right temporary UI component for mobile and web applications.

DialogMobileOverlay
0 likes · 10 min read
Mastering Overlay Layers: Dialogs, Toasts, and Snackbars Explained
58UXD
58UXD
Nov 19, 2015 · Mobile Development

Choosing the Right Pop‑Up Reminder for Mobile Apps: A Practical Guide

This article explains the different types of in‑app pop‑up reminders on iOS and Android, compares their characteristics, and provides clear criteria for selecting the most appropriate reminder style based on importance, content richness, and required user actions.

Mobile UIUser experiencealert dialog
0 likes · 12 min read
Choosing the Right Pop‑Up Reminder for Mobile Apps: A Practical Guide