Button btn = ui.btnValider; btn.setOnClickListener((View btn) -> { // faire quelque chose });