View into the abyss
summary
Explains how Android actually composes UI by walking the view tree with measure/layout/draw and shows Device Monitor screenshots and code-level examples. Claims SmartNews supports Android 2.2 and the app family reaches about 15 million installs. Describes a custom page‑flip built with FrameLayout plus per-child clipping, overrides measure to reflow children (works and speeds rendering), and practical optimizations: requestLayout avoidance, cached measure results and using setLayerType for smoother animations.
AI-written summary · about
chapters (11)
- 0:00Introduction to SmartNews
- 1:17Android 2.2 support reasons
- 3:17View structure and hierarchy
- 6:48View sizing and layout
- 12:14View remeasurement impact
- 16:44Avoiding requestLayout
- 19:13View drawing and invalidate
- 21:53Page flip animation
- 23:37Partial view updates
- 24:27Hardware layer usage
- 25:10Performance improvement importance
related talks
32mA Skeptics Guide to Programmatic Views on Android
40mWriting Custom Views for Android
42mMeasure. Layout. Draw. Repeat: Custom Views and ViewGroups
48mEfficient Android Layouts
51mBuild Responsive UI in Android
46mBuilding a modern Android UI
41mview to pixel
26mAndroid Platform Views Past, Present, Future
