Affichage des articles dont le libellé est Onclock. Afficher tous les articles
Affichage des articles dont le libellé est Onclock. Afficher tous les articles

mercredi 12 août 2015

Onclock property



Can set an oncick listener via this property or not?
I have tried this: android:onClick="@string/str_onclick_searchbt"
where str_onclick_searchbt = "onClickSearch" corresponding to a function onClickSearch(View view).

But it does not seem to be working - my app seems to crash.

If you can't do this then what is the onclick property for?