Refresh ListView upon Tab change/swipe (Android)
问题 I have a Fragment and a ListFragment both under a FragmentActivitiy. When I am in the Fragment, and I want to swipe to the ListFragment, how do I get the ListView to update? Basically, I have an insert button/EditText in the Fragment and the user will insert new info. I want to swipe to the ListFragment and then dynamically SEE that new info. The only way to get it to refresh is by backing out of the parent activity and entering again. I see there are methods onTabSelected or onTabReselected,