I have the following question, if I have a class extending a LinearLayout like:
public class ExtendedSeekbarLayout extends LinearLayout { ..} and I would like to pass additional Arguments to my Layout, how do I do this? I know that I could have the following constructors like:
public ExtendedSeekbarLayout (Context context) { super(context); } public ExtendedSeekbarLayout (Context context, AttributeSet attributeSet) { super(context, attributeSet); } public ExtendedSeekbarLayout (Context context, AttributeSet attributeSet, int defStyle) { super(context, attributeSet, defStyle); } but I would like to have something like:
public ExtendedSeekbarLayout (Context context, AttributeSet attributeSet, int defStyle, int position) { super(context, attributeSet, defStyle); init(position); } I'm not sure if this is possible, if not, which would be the way to go then?
Thanks a lot and cheers, pingu