4 messages in com.googlegroups.android-developersRe: [android-developers] Re: Developm...
FromSent OnAttachments
Artem05 Dec 2007 02:03 
Dan05 Dec 2007 02:27 
Artem09 Dec 2007 10:45 
Wei Yih12 Dec 2007 08:43 
Subject:Re: [android-developers] Re: Development of own custom component
From:Wei Yih (cher@singnet.com.sg)
Date:12/12/2007 08:43:19 AM
List:com.googlegroups.android-developers

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.