Simplest example from documentation for showing timeline is as following:
final UserTimeline userTimeline = new UserTimeline.Builder() .screenName("fabric") .build(); final TweetTimelineListAdapter adapter = new TweetTimelineListAdapter.Builder(this) .setTimeline(userTimeline) .build(); setListAdapter(adapter);
It does show Tweets in a list. It does a background network call to download data and then shows it. So until API is doing network call there’s blank screen with no indication that something is happening.
Is there any Callback we can add in above example for Success and Error where we can update our own implementation of ProgressBar?
Documentation does have an example of using SwipeRefreshLayout but that works when there’s already Loaded List (2nd time loading). I am looking for showing Progress when application is loading data for the first time using code posted above.