为不确定的圆形进度条设置背景

时间:2015-08-26 23:49:39

标签: android

我有一个类似于以下的圆形进度条,我想为微调器添加一个静态浅蓝色背景。

最简单的方法是什么?

我是Android开发的新手,经常发现改变小事情出乎意料。

http://4.bp.blogspot.com/-tqB3UP6KYaM/VItDu0F9kdI/AAAAAAAAATs/QB0X4AqWWY0/s1600/spinningwheel.gif

我尝试了以下内容,但它会显示整个正方形的浅蓝色。

spinner.setBackgroundColor(getResources()的getColor(R.color.blue_super_light));

非常感谢您的帮助! 惠

1 个答案:

答案 0 :(得分:0)

通过设置属性没有简单的方法,所以我最终创建了一个圆形drawable并将其设置为背景。

C:\>call /?
Calls one batch program from another.

CALL [drive:][path]filename [batch-parameters]

  batch-parameters   Specifies any command-line information required by the
                     batch program.

If Command Extensions are enabled CALL changes as follows:

CALL command now accepts labels as the target of the CALL.  The syntax
is:

    CALL :label arguments

A new batch file context is created with the specified arguments and
control is passed to the statement after the label specified.  You must
"exit" twice by reaching the end of the batch script file twice.  The
first time you read the end, control will return to just after the CALL
statement.  The second time will exit the batch script.  Type GOTO /?
for a description of the GOTO :EOF extension that will allow you to
"return" from a batch script.

<continutes>