Android RecyclerView (Part 2): Parallax Scrolling

Parallax scrolling is a common UI effect where different layers move at different speeds during scrolling, creating a sense of depth. ...

November 2, 2014 · 2 min · haoxiqiang

Android RecyclerView

RecyclerView is a more flexible replacement for ListView. According to the official documentation, it efficiently maintains a limited collection of scrolling data items, and is recommended when your Views need to interact with user gestures and network data. ...

November 1, 2014 · 2 min · haoxiqiang

Android Canvas (Part 2): Clipping

Canvas clipping limits the drawing region: only content within the clipped area is visible. ...

October 3, 2014 · 2 min · haoxiqiang

Android Canvas (Part 1)

A View renders its content by “drawing” — using a canvas (Canvas) and a paintbrush (Paint). The Canvas obtained through the onDraw method is directly composited onto the View. ...

October 2, 2014 · 4 min · haoxiqiang

Android Custom View (Part 2): Measurement Modes

...

October 1, 2014 · 1 min · haoxiqiang

Android Custom View (Part 1)

When you first start writing custom Views in Android, it’s common to feel unsure where to begin. Generally, there are two approaches: From scratch: Extend View and implement the appearance entirely through calculation and drawing. Extend an existing View: Add child views to an existing component, or override methods to change its behavior. ...

October 1, 2014 · 3 min · haoxiqiang