I use support-v4.jar , and can be easily show the loader.
But I want to set some text beside the circle.
and what should i do ?
Asked
Active
Viewed 637 times
0

GeminiYellow
- 1,016
- 2
- 12
- 34
1 Answers
2
Options:
- Place a
ProgressBar
with aTextView
in the xml layout. - Use a
ProgressDialog
and callsetMessage()

S.D.
- 29,290
- 3
- 79
- 130
-
thanks for your answer,but the same as @Chirag Raval.i want to use AsyncTaskLoader.not ProgressDialog . – GeminiYellow Nov 12 '12 at 04:51
-
`AsyncTaskLoader` is for loading data for an Activity in a background thread.`ProgressDialog` is a UI component showing progress of any operation. I doubt there's anything common in them to replace each other's functionality. – S.D. Nov 12 '12 at 05:39
-
not replace,but to change the UI style . use the AsyncTaskLoader in ListFragment have a default circle , I just want to set the circle style . not use a ProgressBar to replace AsyncTaskLoader's loadInbackground. You not tried to use the Support-v4.jar, and no ProgressBar case? – GeminiYellow Nov 12 '12 at 05:50
-
`ListFragment` has method `setListShown()`, which you can use to show/hide it. When It's hidden it will show a progress circle instead. That's the way `ListFragment` is created to behave. – S.D. Nov 12 '12 at 06:02
-
1Well, The `ListFragment` is more of a utility class that auto-generates layout for you and it only generates one kind of layout. So, if you need some thing custom , Use a normal fragment and create your own layout. – S.D. Nov 12 '12 at 06:16