Tag

Drawable

0 views collected around this technical thread.

Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 17, 2024 · Mobile Development

Synchronized Frame Animation Across Multiple Android Views (Mirror Frame Animation)

This article explains the concept of "same‑frequency same‑frame" animation, analyzes the limitations of existing animation engines, and presents a Drawable‑based projection technique with code examples to synchronize animation frames across multiple Android views while reducing memory and CPU overhead.

AndroidDrawablePerformance
0 likes · 16 min read
Synchronized Frame Animation Across Multiple Android Views (Mirror Frame Animation)
Sohu Tech Products
Sohu Tech Products
Mar 9, 2022 · Mobile Development

Using Custom Drawable to Simplify Complex Android Views and Implement a Moving Basketball Example

This article explains how to leverage Android's custom Drawable to separate drawing logic from View interaction, demonstrates extracting reusable Drawable components for complex charts, and provides a complete Kotlin example that draws a basketball and animates it to the user's touch point.

AndroidCustom ViewDrawable
0 likes · 11 min read
Using Custom Drawable to Simplify Complex Android Views and Implement a Moving Basketball Example
Tencent Music Tech Team
Tencent Music Tech Team
Aug 26, 2016 · Mobile Development

Dynamic Android UI: Adding Views Programmatically, Drawable Subclasses, and NinePatch Handling

The article explains how Android developers can build dynamic user interfaces by programmatically creating and adding views, replace XML drawables with Drawable subclasses such as StateListDrawable, GradientDrawable, and LayerDrawable, and generate NinePatchChunk data at runtime to use server‑delivered .9.png images without pre‑processing.

AndroidDrawableJava
0 likes · 16 min read
Dynamic Android UI: Adding Views Programmatically, Drawable Subclasses, and NinePatch Handling