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);
}
on ICS virtual device it works fine, but progress do not shows in device with Android 2.1. what i`m doing wrong?
Make sure you import com.actionbarsherlock.view.Window
, not android.view.Window
.
Try setSupportProgressBarIndeterminateVisibility(boolean)
to get backward compatibility.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With