Have you read this?
http://code.google.com/android/toolbox/custom-components.html
Artem wrote:
Hello Daniel,
yes, good example, Thanks!
but i would like to know which actions should i do to make my own
component from the zero, because as example DatePicker does not give
me enough public classes which i can override and as example draw my
own Table of digits with my own rules.
So, i mean which minimum actions should i do if i extend as example
View or FrameLayout.
Because otherwise i have such code:
public class CustomDatePicker extends DatePicker {
public CustomDatePicker(Context arg0, AttributeSet arg1, Map arg2) {
super(arg0, arg1, arg2);
// TODO Auto-generated constructor stub
}
}
and methods which i can override are just "init" and
"getWeekStartDate", but it does not give me methods which allow me to
draw digits of Calendar as i want.
So for that i need to write my own DatePicker as i unterstood, but
maybe i'm not right and i need help.
I even decompiled code of DatePicker, but if true it's not clear for
me, because it's decompiled code and methods of constructor is not
clear.