Android App Development Tutorial 15: OnClickListener

preview_player
Показать описание
Learn what is OnClickListener in Android and how it can be used to listen to click events on Views.

Рекомендации по теме
Комментарии
Автор

I think you made avalid point, towards why to put the trigger for an event into the java code instead of xml. I think it's good practice, and I'll try to follow it. However, when there are many views in a layout which all call the same method, albeit with different values, I'd prefer to implement onClick in the xml file for better readability. You could still add comments above the methods.

globalSchelmuffsky
Автор

Thanks i think now I'm at the right course

princeheir
Автор

thanks for the video tutorials
what is diff b/w
getApplicatonContext() & MainActivity.this in
Toast.makeText(context, " ", Toast.LENGTH_LONG)

haribabukoduri
visit shbcf.ru