We have a ViewPager inside a Layout of an Activity.

We have a FragmentGenerator class which generates Fragment's to the ViewPager Adapter.

Inside the Fragment there are many LinearLayouts, nested or not.

Inside one LinearLayout there is a ListView, which has its own Adapter.

The items of the ListView have their own Layout, which consists of many View's, and one checkbutton named ibOK.

When ibOK is pressed, some other View of the same Fragment must be updated.

Here is current code:

```
public class cAdaptadorListEntries extends BaseAdapter
{
    //...
    @Override
    public View getView(final int position, View convertView, ViewGroup parent)
    {
    //...
    // inflate item layout and find ibOK checkbox
    //...
    ibOK.setOnClickListener(new View.OnClickListener()
       {
           @Override
           public void onClick(View v)
           {
               ibOK.setSelected(false);
               ibOK.setEnabled(false);
               // do something else
               // cGlobalClass.fDoOtherThingsWithGlobalVars();
               GridLayout gltemp = (GridLayout) ((ViewGroup) (ibOK.getParent().getParent().getParent().getParent())).findViewById(R.id.glMyGrid);
               gltemp.getChildAt(0).setBackgroundColor(Color.BLUE);
            }
        }
    );
//...
}

```

This code kind of works, and we can acess the GridLayout items successfully. But it is not what we need.

What we really need is to call a member method of the Fragment, which could, in turn, redraw the GridLayout entirely (by changing the text of all its children).

So, finally, the question: how can we call a method of the fragment from the ibOK listener?

Thanks, and sorry for being verbose.