进度在白色背景进度、白色、背景

2023-09-06 05:56:42 作者:残留的温柔

在白色背景上的纺纱进度不露面,因为微调为白色。 Android版是否包括任何进度风格以白色背景对比?或将我需要皮肤我自己?

The spinning ProgressBar doesn't "show up" on a white background because the spinner is colored white. Does Android include any ProgressBar styles to contrast with a white background? Or will I need to skin my own?

推荐答案

要改变只有一个进度条,使用Widget.ProgressBar.Inverse风格上的进度:

To change only one ProgressBar, use the Widget.ProgressBar.Inverse style on your ProgressBar:

<ProgressBar ... style="@android:style/Widget.ProgressBar.Inverse" />

要改变这一切您的应用程序的进度的,在你的清单使用Theme.Light:

To change all of your app's ProgressBar's, use Theme.Light on your manifest:

<application ... android:theme="@android:style/Theme.Light">