A progress bar will appear with the row loaded before the fragment loads in HoneyComb3.0

hi
I am writing an Android application that displays a list. Clicking on any item in the list will display another list, which is a fragment. Use this snippet as Fragment1.I will display this snippet every time I click on the 1,2,4 list. But when I click ListItem3, I will show another fragment, say Fragment2, except Fragment1. My question is, before clicking ListItem3, a ProgressBar with the text “Download” is displayed at the place where Fragment2 should be displayed when I click ListItem3. ProgressBar exists even after displaying Fragment2. Can someone tell me the reason this ProgressBar is being displayed? I'll wait for a response.


Thanks at Advance.

+3
source share
1 answer

, @JasonKnight . :

public class PoursFragment extends ListFragment {

@Override
public void onActivityCreated(Bundle savedState) {
    super.onActivityCreated(savedState);
    this.setListShown(true);
    ...
+8

Source: https://habr.com/ru/post/1791466/


All Articles