Add button to java code in Android / Eclipse -


is possible automatically add buttons , lists java code fragment layout in eclipse?

i thinking it's done in c# / visual studio assign name listener , rest added automatically in code.

i know how manually. it's cumbersome if have many controls.

it not possible, assing same method views, example android:onclick="handleclick" , in code need declare method this:

public void handleclick(view target){     switch(target.getid()){     case r.id.view1:         /// handle click on view1         break;     case r.id.view2:         // handle click on view2         break;     /// ,......     } } 

and need 1 method, , handle click event adding case switch


Comments

Popular posts from this blog

android - Automated my builds -

python - How to return the most similar word from a list of words? -

apache - GeoServer under https -