Sign in Go Pro

Custom Views and ViewGroups

Custom Views and ViewGroups (Part 1)

 
Autoplay

Up next

About

An introduction to custom Views and ViewGroups, subclassing the View class, and performing completely custom drawing within that subclass.

In this episode you will learn:

When you might need to build custom Views.
The process of how an instantiated View is drawn onto the screen.
The basic steps to extend the base View class to draw fully custom content.
How to use a custom View class in an XML layout.
How to request a custom View class to redraw.

Instructor

Links

Comments

Hi, great tutorial so far, very easy to follow which is great. But why is textOffsetY * -0.4f and not -0.5f??

I figured -0.5 would center it more correctly? Or am I missing something?

Thanks

>
You need to go PRO to post comments.

Lessons in Custom Views and ViewGroups