I have few fragments hosted by an acticity, i want to access specific fragments’ button on the fragment view from the hosting activity
from the fragment i can access activitie’s button like this
btnSubmit = (MaterialButton) getActivity().findViewById(R.id.submit_btn);
i want to do the inverse of this, is there any method to do this?