Tag

WindowManager

1 views collected around this technical thread.

Sohu Tech Products
Sohu Tech Products
Apr 16, 2025 · Mobile Development

Android 16 Screen Orientation Deprecation and Large Screen Adaptation Guide

Starting with Android 16, Google deprecates manifest screen‑orientation and resizability attributes for large‑screen devices (sw ≥ 600dp), forcing apps targeting API 36+ to adopt responsive layouts—such as Compose window‑size classes, TwoPane, Activity Embedding, or Flutter frameworks—while offering a temporary opt‑out property before mandatory adaptation in API 37.

Activity EmbeddingAndroid 16Android Development
0 likes · 8 min read
Android 16 Screen Orientation Deprecation and Large Screen Adaptation Guide
Sohu Tech Products
Sohu Tech Products
Dec 14, 2022 · Mobile Development

Implementing a Drag‑and‑Bounce Custom View with Explosion Effect in Android (Kotlin)

This tutorial explains how to build an Android custom view that lets a large circle be dragged, scales a smaller circle based on distance, snaps back with a bounce animation when released inside a boundary, or plays an explosion sequence when released outside, using Kotlin, Bézier curves, and WindowManager integration.

AndroidBezier CurveCustom View
0 likes · 19 min read
Implementing a Drag‑and‑Bounce Custom View with Explosion Effect in Android (Kotlin)
Beike Product & Technology
Beike Product & Technology
Oct 26, 2018 · Mobile Development

Adding a Persistent Floating Button to Every Android Screen via DecorView Instead of WindowManager

The article explains why using WindowManager for floating buttons on Android is problematic across versions, demonstrates how the JD.com app adds a floating view directly to the Activity's DecorView, and provides a complete lifecycle‑aware implementation for Beike's app using ActivityLifecycleCallbacks and view injection.

ActivityLifecycleAndroidDecorView
0 likes · 6 min read
Adding a Persistent Floating Button to Every Android Screen via DecorView Instead of WindowManager
Tencent Music Tech Team
Tencent Music Tech Team
Jan 26, 2018 · Mobile Development

Comparative Study and Implementation of Small‑Window Video Playback on Android

The article compares Android small‑window video playback techniques—SurfaceView, GLSurfaceView and TextureView—detailing their animation limitations, providing source‑code examples for embedded and floating implementations, and showing that TextureView combined with a singleton player offers the smoothest, most reliable small‑window experience.

AndroidPicture-in-PictureSurfaceView
0 likes · 14 min read
Comparative Study and Implementation of Small‑Window Video Playback on Android
Tencent Music Tech Team
Tencent Music Tech Team
Jan 12, 2018 · Mobile Development

Analysis of Toast Display Issues in Android Applications

The article examines common Android Toast problems, detailing exceptions like WindowManager$BadTokenException and sporadic display failures, explains how Toast uses a system TYPE_TOAST window, analyzes the underlying source code, and offers practical solutions to prevent and fix these issues.

AndroidBinder ProxyException Handling
0 likes · 11 min read
Analysis of Toast Display Issues in Android Applications