Search This Blog

Friday, June 10, 2016

RadioButton - Sự kiện check vào RadioButton setOnCheckedChangeListener


// Xử lý các RadioButtonradioButtonDatHangKhongDangKy.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
    @Override    public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
        if (isChecked == true) {
            radioButtonDangNhapTrangDangNhap.setChecked(false);
            txtQuenMatKhauTrangDangNhap.setVisibility(View.GONE);
            editTextMatKhauTrangDangNhap.setVisibility(View.GONE);
            btnDangNhapTrangDangNhap.setText("TIẾP TỤC MUA HÀNG");
        }
    }
});

No comments:

Post a Comment