Ok, you could do something like this:
In your activity, indicate public links to both of your fragments:
public FragmentNumberOne getFragmentOne() { return fragOne; } public FragmentNumberTwo getFragmentTwo() { return fragTwo; }
then provide accessors for the TextView in the Fragment class of fragment one:
public TextView getTextView() { return mTextView; }
and in the original Fragment you can use:
((MyActivity)getActivity()).getFragmentOne().getTextView().setText("Hello");
source share