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

90. Custom Widget Bucket Date Picker View

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 shows how our Custom Date Picker in Android works. It is called Custom Bucket Date Picker Widget and there are 2 ways to achieve the widget. We can either use a simple version which has 9 Views and 4 layouts which would basically be composed of ImageButtons to increment and decrement fields, a TextView to display the values. A complex approach uses only 3 Views and 1 layout which basically would be TextViews with compound drawables. We also use a Layer List drawable in Android to stack images on top of each other to achieve the background for our custom widget.

Course Cirriculum