I'm trying to extend android's DatePicker.
My first attempt involved extending the class directly. i.e.
public class CustomDatePicker extends DatePicker{
...
however many of the useful methods inside DatePicker are declared private. Especially the "updateSpinners()" which is where most of the work is done. Adding any significant functionality to the component by using extends looks to be very difficult.
My next attempt was to copy the code directly from DatePicker into my own class, CustomDatePicker.
However the problem I'm now getting is that the code references id's inside the NumberPicker layout.
e.g.
mDaySpinnerInput = (EditText) mDaySpinner.findViewById(R.id.numberpicker_input);
The "numberpicker_input" cannot be found in my R class. (Also does not work if I prefix with "android.")
I started to try and copy past the NumberPicker layout files, but then they referenced other resources that did not exist in my project. It felt like I was traveling down a slippery slope!
Is there a way of referencing these id's inside NumberPicker's layout? Is there something I'm missing?