我为动作栏按钮尝试了两种不同的进度条样式,通过
refreshMenuItem.setActionView(R.layout.actionbar_indeterminate_progress);
actionbar_indeterminate_progress.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="?attr/actionButtonStyle" >
<ProgressBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@android:style/Widget.ProgressBar.Small" />
</LinearLayout>
我试过Widget.ProgressBar.Small和Widget.ProgressBar.Small.Inverse。但是,我没有看到任何视觉差异。
Widget.ProgressBar.Small
Widget.ProgressBar.Small.Inverse
我希望有一个相反的颜色,但没有。我错过了什么吗?