Thanks guy.

The code is simple, in AndroidManifest.xml:
<activity android:name=".CheckPreferences" android:label="@string/
appname"
            android:configChanges="keyboardHidden|orientation"
android:theme="@android:style/Theme.Dialog"
            android:excludeFromRecents="true" />

In CheckPreferences.java, who extends Activity:

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
        setProgressBarIndeterminateVisibility(true);

And then I just did not call setProgressBarIndeterminateVisibility
(false) in all my codes.

Is it clearly?



On 6月3日, 上午10时02分, Mark Murphy <[email protected]> wrote:
> Billy Cui wrote:
> > Anybody here?
>
> No, we're not here. ;-)
>
> > On 6月2日, 下午5时21分, Billy Cui <[email protected]> wrote:
> >> I make android:theme="@android:style/Theme.Dialog" for an Activity.
>
> >> And then add these 2 lines in onCreate:
> >>          requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
> >>          setProgressBarIndeterminateVisibility(true);
>
> >> But find them not function.
>
> >> Is there a way to make them function?
>
> If I had to guess, and this is just a guess, the window feature you want
> is incompatible with the theme you want.
>
> Do you have any examples of an application using a dialog theme window
> that is using an indeterminate progress bar in the dialog title?
>
> Have you considered putting your own ProgressBar in the body of your
> activity, rather than in the title?
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Warescription: Three Android Books, Plus Updates, $35/Year
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to