我为动作栏按钮尝试了两种不同的进度条样式,通过:
我曾尝试使用 Widget.ProgressBar.Small 和 Widget.ProgressBar.Small.Inverse,但是我没有看到任何视觉上的区别。
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,但是我没有看到任何视觉上的区别。