@Override public void onCheckedChanged(RadioGroup group, int checkedId) { if (checkedId == R.id.homdeDeleiveryThree) { /** Save value as per off */ objPrescriptionModel.setFifteenOff(""); } else if (checkedId == R.id.homdeDeleiveryeight) { /** Save value as per off */ objPrescriptionModel.setThirtyOff(""); } }
@Override public void onClick(View v) { int id = v.getId(); if (id == R.id.buttonFloat) { linearLayoutAddPres.setVisibility(View.VISIBLE); buttonAddPrescription.setVisibility(View.GONE); linearLayoutEmpty.setVisibility(View.GONE); layoutAddPhotos.setVisibility(View.GONE); textViewNote.setVisibility(View.GONE); } else if (id == R.id.buttonUPloadPrescription) { // dialog.show(); selectImage(); } else if (id == R.id.buttonSendPrescription) { objPrescriptionModel.setDoctorAdd(editTextDoctorAdd.getText().toString()); objPrescriptionModel.setImagePrescription(encodedImage); deleteExistingDirectory(); } else if (id == R.id.buttonNext) { linearLayoutAddPres.setVisibility(View.GONE); textViewNote.setVisibility(View.VISIBLE); layoutAddPhotos.setVisibility(View.VISIBLE); } }