Combine custom title with FEATURE_PROGRESS

后端 未结 1 514
孤城傲影
孤城傲影 2020-12-11 19:12

In my onCreate() I set a progress bar as follows:

getWindow().requestFeature(Window.FEATURE_PROGRESS);
getWindow().setFeatureInt( Window.FEATURE_PROGRESS, Wi         


        
相关标签:
1条回答
  • 2020-12-11 19:24

    As documentation says:

    FEATURE_CUSTOM_TITLE

    Flag for custom title. You cannot combine this feature with other title features.

    What you can do as you mentioned is to use a custom title bar with a ProgressBar, here is an example how to accomplish that.

    In the other hand, why aren't you using Action Bar?.

    0 讨论(0)
提交回复
热议问题