Bonjour à tout,
Je voudrais utiliser MyOndraw avec 2 parameters : context et Object
Mais , Class View ne support par définition: MyOndraw (Context context, Object ob)
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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); } }
Comment je peut utiliser Object ob dans function MyOndraw
Partager