refresh fragment UI from fragmentActivity

So obviously adjust for your specific needs, but this is what I use for my Application. Fragment frag = getSupportFragmentManager().findFragmentByTag(“android:switcher:” + R.id.pager + “:” + mPager.getCurrentItem()); if(frag!=null&&mPager.getCurrentItem()==0) { ((Fragment1) frag).changeImageView(1); }

Setting Custom ActionBar Title from Fragment

What you’re doing is correct. Fragments don’t have access to the ActionBar APIs, so you have to call getActivity. Unless your Fragment is a static inner class, in which case you should create a WeakReference to the parent and call Activity.getActionBar from there. To set the title for your ActionBar, while using a custom layout, … Read more