¡@

Home 

2014/10/16 ¤W¤È 08:20:49

android Programming Glossary: onrefreshselected

Android, How to restart/refresh a fragment from FragmentActivty?

http://stackoverflow.com/questions/11578000/android-how-to-restart-refresh-a-fragment-from-fragmentactivty

user clicks on refresh button. The code is like this public class MainScreen extends FragmentActivity public interface OnRefreshSelected public void refreshFragment boolean flag private OnRefreshSelected onRefreshSelected @Override public void onCreate Bundle.. extends FragmentActivity public interface OnRefreshSelected public void refreshFragment boolean flag private OnRefreshSelected onRefreshSelected @Override public void onCreate Bundle savedInstanceState super.onCreate savedInstanceState Log.i TAG.. savedInstanceState Log.i TAG Try to create MainScreen... setContentView R.layout.activity_main onRefreshSelected OnRefreshSelected MainScreen.this @Override public boolean onCreateOptionsMenu Menu menu getMenuInflater .inflate R.menu.activity_main menu..