How to update the contents of a ViewPager fragment

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? enter image description here

0
android android-fragments
source share

No one has answered this question yet.

See similar questions:

7
Save / update EditText data fragments in FragmentStatePagerAdapter

or similar:

3295
Why is the Android emulator so slow? How can we speed up Android emulator development?
1207
Strange memory issue when loading image into Bitmap object
937
findViewById in fragment
823
onActivityResult not called in fragment
702
How to determine when a fragment becomes visible in ViewPager
603
Best practice for instantiating a new Android snippet
572
ViewPager PagerAdapter does not update View
133
Updating data in ListFragment as part of ViewPager
98
Prevent ViewPager from destroying the screensaver
12
Viewpager + FragmentpagerAdapet + Fragments + Listview = insanely slow application

All Articles