Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Implementing Designs for Android Customizing a ListView for the Inbox Adding a Swipe-to-Refresh Gesture

Delete the calling of the original set progress bar methods.

I also had to comment out these two lines of code which generated a NullPointerException

getActivity().setProgressBarIndeterminateVisibility(true); getActivity().setProgressBarIndeterminateVisibility(false);

Also, the progress animation is not represented by a bar anymore, but it has a spinning circle. Could not modify it's color, but i'll skip it for now.

1 Answer

Daniel Hartin
Daniel Hartin
18,106 Points

Hi Paul

Just to double check do you have the following line inside your onCreate() method before the call to setContentView()


You must have this line in before you can set the ProgressBar.