How can i implement an activity indicator with bar style. As according to the following documentation http://developer.android.com/design/building-blocks/progress.html “Activity indicators are for operations of an indeterminate length.” and “Two styles are available: a bar and a circle. Each is offered in a variety of sizes, in both Holo Light and Holo Dark themes.” that’s fine but where can i get example of that… i really tried a lot but not able to find any single example. In short i just want to use the following activity indicator as shown in image.

plus i want to use this Activity indicator in notification as already shown in above image to show some progress if you can guide or provide example same as according to my scenario then it’ll be much better but at least guide me how can i show this view in my layout.
After further search at last i found the answer…
from xml
from java you can simply set mode to indeterminate by using method
Actually the name Activity Indicator is confusing and other confusion in my mind was that the progressbar is different from the activity indicator but in actual both are same… only the difference is of their mode.