Tag

SurfaceView

0 views collected around this technical thread.

DaTaobao Tech
DaTaobao Tech
Feb 14, 2025 · Mobile Development

Resolving SurfaceView Flash Black Issues in Taobao Shopping Cart with Hybrid Architecture

The black‑flash in Taobao’s shopping‑cart tab occurs because SurfaceView’s independent surface is destroyed during fragment removal or activity switches, and four remedies are offered: keep the fragment alive with show/hide, capture and display a screenshot, toggle between ImageView and SurfaceView via Weex APIs, or convert SurfaceView to TextureView temporarily, each with performance, memory, and latency trade‑offs.

AndroidFragmentSurfaceView
0 likes · 10 min read
Resolving SurfaceView Flash Black Issues in Taobao Shopping Cart with Hybrid Architecture
DaTaobao Tech
DaTaobao Tech
Feb 12, 2025 · Mobile Development

Optimizing Fragment Transition Animations in Android: Analysis and Solutions

The article examines why Android fragment transition animations lag compared to activity animations and proposes three remedies—delaying heavy UI work, feeding data frame‑by‑frame via Choreographer callbacks, and using an asynchronous SurfaceView snapshot—to achieve smoother, deterministic UI performance on low‑end devices.

AndroidChoreographerFragment
0 likes · 13 min read
Optimizing Fragment Transition Animations in Android: Analysis and Solutions
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
Dec 29, 2017 · Mobile Development

Analysis of SurfaceView, GLSurfaceView, and TextureView for Picture-in-Picture Video Playback on Android

The article compares Android’s SurfaceView, GLSurfaceView, and TextureView for picture‑in‑picture video playback, explaining each view’s rendering model, the hole‑punch limitations of SurfaceView, Android N’s synchronous updates, and TextureView’s full transformation support at higher power cost, to guide developers in choosing the optimal solution.

AndroidPicture-in-PictureSurfaceView
0 likes · 17 min read
Analysis of SurfaceView, GLSurfaceView, and TextureView for Picture-in-Picture Video Playback on Android