Bonjour a tous,
Je suis entrain de développer une application de dessin ,comment ajouter une crayon de couleur (noir ou rouge ...) à un bouton.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 <ImageButton android:id="@+id/bouttonnoir" android:layout_weight="0.2" android:layout_height="wrap_content" android:layout_width="wrap_content" />
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8 bnoir=(ImageButton)findViewById(R.id.bnoir); bnoir.setOnClickListener(new OnClickListener() { public void onClick(View arg0) { } });
Partager