Tagged articles
Custom View
19 articles · Page 1 of 1

大转转FEJun 30, 2025 · Mobile Development
This article details the design and implementation of a native Android image‑editing component built for warehouse quality‑inspection, covering business motivations, core features such as multi‑image batch editing, matrix‑based transformations, a command‑pattern undo/redo system, technical architecture, key challenges, and future extension plans.
AndroidCustom ViewMatrix transform
0 likes · 29 min read

The article introduces AutoHeightViewPager, a custom ViewPager subclass that measures the current page’s view height and overrides onMeasure to resize itself, interpolating between pages during scroll via an AutoHeightPager‑compatible adapter, thereby eliminating blank space or clipping and providing smooth height transitions for variable‑sized content.
AndroidCustom ViewKotlin
0 likes · 9 min read

Introducing NestedScrollFrameLayout, a FrameLayout subclass that implements NestedScrollingChild, enables any wrapped view to participate in Android nested scrolling—including touch and fling—without modifying the child, offering one‑click integration, smoother continuous scrolls, and dramatically lower development and maintenance costs.
AndroidCustom ViewFling
0 likes · 12 min read

This article walks through the mathematical analysis, coordinate calculations, and step‑by‑step Android code needed to draw an inverted equilateral triangle, animate a red/black tracing line, and rotate the shape with rounded corners, while addressing common pitfalls such as frame drops and aliasing.
AndroidCanvasCustom View
0 likes · 12 min read

This article introduces HorStickyNavLayout, a custom Android ViewGroup that enhances RecyclerView horizontal scrolling with a sticky footer prompting users to discover more content, detailing its architecture, nested scrolling handling, fling behavior, and animation logic to improve interaction without extra item views.
AndroidCustom ViewRecyclerView
0 likes · 7 min read

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.
AndroidCustom ViewDrag-and-Drop
0 likes · 19 min read

This article details the design and implementation of a custom nested scrolling layout for the Lofter 7.1.0 personal homepage, covering the selection of Android coordinator components, the underlying NestedScrolling mechanism, step‑by‑step integration, code analysis, inertia handling, and animation management.
AndroidCustom ViewKotlin
0 likes · 18 min read

This article explains how to create a custom Android view that functions as a two‑way vertical switch with top‑bottom activation, indicator dots, ripple effects, dynamic text and color changes, and provides the full implementation steps from drawing to touch handling and external control.
AndroidCustom ViewMobile UI
0 likes · 6 min read

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.
Custom ViewDrawableGraphics
0 likes · 11 min read

This article demonstrates how to build a custom stock K-line chart in Android using Jetpack Compose, covering the transition from traditional View drawing to Compose's Canvas API, detailed code for rendering, and implementing drag, long‑press, and pinch‑zoom gestures with state‑driven UI updates.
AndroidCustom ViewJetpack Compose
0 likes · 16 min read

This article analyzes the limitations of traditional Android exposure tracking methods that rely on parent container lifecycles and introduces a reusable, low-intrusion solution using a custom layout that leverages core View lifecycle callbacks and drawing listeners to accurately detect component visibility and duration.
Android developmentCustom ViewExposure Analytics
0 likes · 15 min read

This article explains how to build a custom Android progress view featuring random particle motion, radial gradient backgrounds, sector clipping, pointer color changes, animated color transitions, and a jumping number display, with complete source code and step‑by‑step implementation details.
AndroidCustom ViewParticle Animation
0 likes · 13 min read

This article analyzes why custom Android Views embedded in React Native often fail to render without explicit width and height, explores the underlying RN root layout, measureSpec, and Yoga engine mechanisms, and provides practical solutions such as FrameCallback registration and layout updates to ensure proper rendering.
AndroidCustom ViewLayout
0 likes · 12 min read

This article explains how Android's drawBitmapMesh method can be used to split a bitmap into a mesh, manipulate the vertex array to achieve various image‑warping effects such as face slimming, curtain folding and water‑ripple animations, and provides complete Java code examples and implementation steps.
Custom ViewGraphicsdrawBitmapMesh
0 likes · 17 min read

This article introduces how to create custom Android Views by overriding onMeasure, onLayout, and onDraw, explains the three-stage view rendering process, and provides detailed examples of Canvas drawing methods—including drawing points, lines, shapes, text, images, and bitmap manipulation—along with code snippets and usage tips.
CanvasCustom ViewGraphics
0 likes · 31 min read

A junior Android developer learns to extract a card UI into a reusable layout, replace repetitive findViewById code with a custom view, then streamline everything further using Jetpack ViewBinding and Kotlin extension functions, dramatically cutting boilerplate and simplifying maintenance.
AndroidCustom ViewInclude Tag
0 likes · 12 min read

This article explains the Android NestedScrolling mechanism, compares it with the traditional view event dispatch system, details the core scrolling flow, presents the key NestedScrollingParent and NestedScrollingChild interfaces with code examples, and walks through a practical demo and source‑level analysis.
Custom ViewNestedScrollingRecyclerView
0 likes · 19 min read

Baidu App replaced its original two‑view nested‑scrolling setup with a flexible, component‑based solution that leverages Android’s NestedScrolling API to coordinate any number of child views—via ILinkageScroll, LinkageScrollHandler and ChildLinkageEvent—handling pre‑scroll, fling, scrollbar aggregation, and a Xiaomi‑specific OverScroller fix, with code available open‑source.
AndroidCustom ViewFling Gesture
0 likes · 15 min read

This article introduces the AdherentLayout component for Android, explains its customizable features, API methods, core Bézier‑curve technology, provides full implementation details with code, and demonstrates how it can recreate the popular “one‑tap dismiss” effect and other sticky‑layout scenarios.
AdherentLayoutAndroidBezier Curve
0 likes · 6 min read
