Android: how to handle button click

后端 未结 10 2227
刺人心
刺人心 2020-11-27 11:08

Having a solid experience in non-Java and non-Android area, I\'m learning Android.

I have a lot of confusion with different areas, one of them is how to handle butt

10条回答
  •  南笙
    南笙 (楼主)
    2020-11-27 11:12

    There are also options available in the form of various libraries that can make this process very familiar to people that have used other MVVM frameworks.

    https://developer.android.com/topic/libraries/data-binding/

    Shows an example of an official library, that allows you to bind buttons like this:

提交回复
热议问题