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