Design + Code an Android App from Scratch
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.