Why does the fragment's onCreateView, onCreate, onActivityCreated are called
问题 I have an app, that deals with fragments and ViewPager. I have three fragments in a ViewPager. When you switch between them, it always causes the other two fragments to call their's onCreateView methods. How to do it only once, only when FragmentActivity is created??? I've read some questions and tried the solutions, but the fragments still have the same behavior. ListFragment onCreate called twice onCreate() and onCreateView() invokes a lot more than required (Fragments) Here is some code,