【发布时间】:2013-11-15 07:51:44
【问题描述】:
有没有办法将进度对话框从sherlock fragment(不是片段活动)添加到操作栏夏洛克。我必须使用夏洛克片段,因为在我的应用程序中我使用导航抽屉。
对于片段活动,当我使用以下代码时,进度对话框可以正常工作。
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
setContentView(R.layout.search_all_fragment_layout);
setSupportProgressBarIndeterminateVisibility(true);
有没有办法在 Fragments 中做到这一点?
谢谢。
【问题讨论】:
标签: android android-layout android-intent android-fragments android-fragmentactivity