显示不确定的进度夏洛克操作栏 [英] Showing indeterminate progress in Sherlock Action Bar
本文介绍了显示不确定的进度夏洛克操作栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
按照code我真的想告诉在ABS v不确定的进度栏。4.0.2
i`m trying to show indeterminate progress bar in ABS v. 4.0.2 by following code
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
setContentView(R.layout.main);
getSherlock().setProgressBarIndeterminateVisibility(true);
}
ICS虚拟设备上正常工作,但进展并不显示在设备与Android 2.1。 什么我真的做错了吗?
on ICS virtual device it works fine, but progress do not shows in device with Android 2.1. what i`m doing wrong?
推荐答案
请确保您导入 com.actionbarsherlock.view.Window
,不是安卓.view.Window
。
这篇关于显示不确定的进度夏洛克操作栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文