Design + Code an Android App from Scratch
This video shows how to build our Compound View in Android by inheriting from the LinearLayout. Add the three required constructors, one which is used while initialising the widget directly in code and the others used while initialising the widget from XML. Use the onFinishInflate method which is called as the last phase of inflation after all the child views have been added to initialise the TextViews representing the date, month and year in our compound view. Finally we add an update method that lets us set the date, month and year to the current values when the app is running.