onClick
in xml
just calls through to setOnClickListener
when the View is created. When you then call setOnClickListener
in code, it overrides the existing OnClickListener
that was set in xml
.
2
solved onClickListener vs onClick() [closed]
onClick
in xml
just calls through to setOnClickListener
when the View is created. When you then call setOnClickListener
in code, it overrides the existing OnClickListener
that was set in xml
.
2
solved onClickListener vs onClick() [closed]