Simple play icon Course
Skills

Android Custom Components

by Chiu-Ki Chan

Learn how to create custom components to control the look-and-feel of your app and implement functionalities that are only available by subclassing the View class.

What you'll learn

Android comes with many built-in components, but some tasks are best accomplished by rolling your own. We will start from a simple example of enhancing the TextView class, and finish with a complete custom view with its own size measurement, drawing function, and custom attributes. We will also discuss the best practices for custom views. What is the difference between a custom view and a fragment? How about a compound control? When to use which? By the end of the course, you will know not only how to create reusable custom components, but when to use them.

About the author

Chiu-Ki is a mobile developer with a passion in speaking and teaching. Her mother tongue for mobile is Android, acquired while working on Android Maps at Google. Now she runs her own mobile development company, producing delightful apps such as "Monkey Write" for learning Chinese writing and "Heart Collage" for snapping photos to stitch into a heart. When she is not writing apps, she can be found traveling the world, sometimes sightseeing, sometimes dispensing Android tips on stage at vario... more

Ready to upskill? Get started