Create your account

Already have an account? Login here

Note: By joining, you will receive periodic emails from Coursetro. You can unsubscribe from these emails.

Create account

91. Custom Widget XML Layout

Design + Code an Android App from Scratch

Woah, wait a second..

Scrounge up some loose change to become a pro member, or login to your account to view this lesson.

Alright, join now. Or login to your account if you're already a pro member.

This video talks about the structure of our Custom View in Android. It is composed of a root LinearLayout which is horizontal in orientation and has three TextViews placed side by side. Each TextView occupies a fixed width on a particular class of devices and has a custom background and text style. We add some Space Views between the TextViews for better separation. We also add the layer list drawable which represents our top and bottom arrows to increment and decrement values in each TextView and with a few tweaks, we are good to go

Course Cirriculum