Ondraw Avec Context et Object
Bonjour à tout,
Je voudrais utiliser MyOndraw avec 2 parameters : context et Object
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| public class MyOndraw extends View {
/*public MyOndraw (Context context)
{
super(context);
this.context = context;
}*/
public MyOndraw (Context context, Object ob)
{
super(context,ob);
}
@Override
protected void onDraw(Canvas canvas)
{
super.onDraw(canvas);
}
} |
Mais , Class View ne support par définition: MyOndraw (Context context, Object ob)
Comment je peut utiliser Object ob dans function MyOndraw