on my app I have a button in the mainActivity and viewPager2 with some fragments where each fragment has textsViews that must be field with information. I want to check if the fields are filled when I click on the button " the activity button" I'm trying to use interfaces to fire the click event inside the fragment but I don't know how
I tried this answer Dynamically updating a fragment but it doesn't fit my problem