I have the following program layout. The numbers on the left are the list, and the radio group on the right is the ViewPager fragment. When a number is selected from the list, the corresponding station group is displayed.
When I click the submit button, I want to turn off all groups of radio stations and select the correct answer in each group.
To achieve this, in my fragment manager class inside the public View onCreateView I will turn off each switch using setEnabled(false) and select them using setBackgroundColor(Color.GREEN) . But this does not work properly.
Disables the radio button and changes the background color, but only when I change one fragment to another several times. There is no current update of the current view.
What could be the problem? 
android android-fragments
Asterisk
source share