Android Custom Views: Creating an Animated Pie Chart from Scratch (Part 4 of 4)

by

Introduction to Part 4

In Part 1, Part 2 , and Part 3 of this series, we covered the basics of custom views, created a simple custom PieChart class, and added state handling and custom methods to expand and collapse the pie chart in response to motion events.

In this fourth and final post, we’ll improve our state transitions with a bit of property animation.

Android Custom Views: Creating an Animated Pie Chart from Scratch (Part 1 of 4)

by

Introduction to Part 1

This post is the first in a four-part series on creating Android custom views, and covers a few introductory topics, including: how to decide if a custom view is the best solution to your problem, the three basic methods for creating a custom view, and the required constructors you’ll need to implement when subclassing the View class.