sat*_*sat 0 android android-widget
花了半天时间了解如何将某些样式更改为进度对话框,但我无法这样做.
我想要开始的非常简单的事情,将进度对话框中的微调器颜色更改为除白色之外的其他颜色!,卡在这里.
在Android SDK中,他们正在使用一些图像并对其应用动画,我将不得不从头开始做一切改变微调器的颜色?
任何改进进度对话框的好例子都会有所帮助,我在文档中看到,谷歌搜索结果最多4-6页:),仍然无法得到它.
有什么有趣的方式显示默认的进度对话框?
如果有人可以提供关于应用主题和样式的好博客,我将不胜感激,详细解释.
我正在使用的一些代码,
dialog1 = new ProgressDialog(this); dialog1 = ProgressDialog.show(this, "", "Loading. Please wait...", true);
尝试使用dialog1做很多事情,但没有得到任何想要的结果.
谢谢
final ProgressDialog progressBar = ProgressDialog.show(
SearchScreen.this, "", progressbarSearching);
progressBar.setIndeterminate(true);
progressBar.setIndeterminateDrawable(getResources()
.getDrawable(R.anim.progressbar_handler));
Run Code Online (Sandbox Code Playgroud)
progressbar_handler.xml
<shape android:shape="ring" android:innerRadiusRatio="3"
android:thicknessRatio="8" android:useLevel="false">
<size android:width="48dip" android:height="48dip" />
<gradient android:type="sweep" android:useLevel="false"
android:startColor="#4c737373" android:centerColor="#4c737373"
android:centerY="0.50" android:endColor="#FF0000" />
</shape>
Run Code Online (Sandbox Code Playgroud)