Well, this is something that i am not able to find anywhere. Its might be written somewhere but my may be due to my poor skill of searching i am not able to find it.
So basically what i want to do is, i want to create a class in which i pass String array and from that array the class will return me a view with number of button as the number of elements in String array.
Something like,
Public class customView extends View {
public customView(Context context, AttributeSet attrs, String[] array) {
super(context, attrs, array);
}
}
But i am not able to do this. Because View class does not support String array in constructor parameter. Do any one have any solution for this? Should i move to any new approach to achieve this?
Thanks,
Jay Stepin.