是否有一个黑色的进度栏是可见的白色背景上的? [英] Is there a black progress bar to be visible on a white background?

查看:181
本文介绍了是否有一个黑色的进度栏是可见的白色背景上的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Android默认的进度轮不显示以及当背景是白色的,它是几乎看不出来。我该如何解决这个问题?

The default progress wheel on Android doesn't display well when the background is white, it's barely visible. How can I fix this?

推荐答案

如果你看一下建在styles.xml文件和闲逛内置可绘制的平台,原来的方案是pretty的简单。您可以使用风格属性来使用逆进度条:

If you look at the built in styles.xml file and poke around the platform's built in drawables, it turns out the solution is pretty simple. You can use the "style" attribute to use the inverse progress bar:

<ProgressBar
    android:id="@+id/progress_bar"
    android:layout_width="40dip"
    android:layout_height="40dip"
    android:padding="6dp"
    android:indeterminate="true"
    style="?android:attr/progressBarStyleInverse"
    />

这篇关于是否有一个黑色的进度栏是可见的白色背景上的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆