问题标签 [android-progressbar]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
691 浏览

android - Android:用于 ProgressDialog/Loading 的 Facebook 应用程序是什么

在此处查看此屏幕截图:http: //farm6.static.flickr.com/5174/5389868759_8021dedbb8.jpg

他们在加载数据时利用什么来做到这一点?我有自己的进度对话框设置,但我喜欢 Facebookes 和我见过的其他应用程序如何将它直接集成到应用程序中,而不是新的弹出窗口。

0 投票
5 回答
88730 浏览

android - How to show a Horizontal Android Indeterminate Progress Bar

How to show an indeterminate horizontal progress bar in android? The animation of the progress bar should start from 0 to 100 and then go back from 100 to 0 continuously. I am not looking for the wheel progress bar.

0 投票
2 回答
776 浏览

android-widget - How to create custom ProgressBar and use it in Widget?

I would like use my own extended ProgressBar class in Widget. I has created really simple MyProgressBar and if I place this into standart activity layout, it works. Of course I set also Style attribiute to "?android:attr/progressBarStyleHorizontal" in MyProgressBar property in designer.

But if I do same and place it to Widget layout, its visible good in layout designer in eclipse, however, widget does not work in traget. There is only "Problem loaing widget" message showed instead of widget layout .... on target device....

Source code for MyProgressBar is here :

public class MyProgressBar extends ProgressBar {

}

0 投票
1 回答
1472 浏览

android - 准备显示另一个活动时如何显示 ProgressDialog?

如果用户长按列表项,我需要使用 MapView 显示活动。这个过程需要一段时间,所以我想在应用程序挂起时显示用户进度对话框。这是代码:

我选择了正确的方法吗?现在获取不同的 FC(取决于为 ProgressDialog 选择的上下文)。ProgressBar 可以在我的场景中显示吗?

更新。我试图在开始活动之前展示 Toast。同样,Toast 仅在 Map 已显示时才显示。不明白会发生什么。如果我删除 startActivity 代码,则会立即显示 Toast。

0 投票
3 回答
383 浏览

android - Binder 线程、进度条和 OutOfResourcesExceptions

我正在对我的应用程序进行压力测试。这是我的场景

1)从我的工作线程中,我显示了一个进度条(我正在将消息传递给在 ui 上创建的处理程序)。我在我的工作线程上等待,直到调用 pd.show(),然后我恢复我的工作线程

2)对工作线程执行操作

3)关闭进度对话框。同样,我将消息传递给在 ui 上创建的处理程序并等待工作线程,直到调用 pd.dismiss

为了进行压力测试,我将其放入 10000 次迭代循环中。在我的 Nexus 上一切正常。在银河选项卡和所有摩托罗拉设备上,经过大约 50 次左右的迭代,我的应用程序被强制关闭。我看到 BinderThreads 慢慢增长到 16 并停止增长(我知道 16 是 BinderThreads 的最大限制)。在 Nexus One 上,这些会导致以后出现任何问题。我在galaxy tab和moto设备的logcat中得到了这个

编辑:关闭进度对话框后,我将其设置为 null,以确保它没有保留任何内容。

有任何想法吗?

谢谢,

韦雷什

0 投票
1 回答
4947 浏览

android - Issue with using ProgressBar.setProgressDrawable

Using setProgressDrawable for a ProgressBar with custom colors does not work in a correct way for us. We use progressbars in the rows of a ListView, but the progress is only displayed if there is more than one element in the list. In case of one element the progressbar is empty.

CursorAdapter.java:

/res/drawable/greenprogress.xml:

What's wrong with this code and why does it work only if there are more than one elements in the list? Without setting a custom ProgressBar style everything is running fine. The method setProgressDrawable seems to make problems.

Thank you for helping us.

0 投票
3 回答
7747 浏览

android - 如何显示带有进度微调器的对话框?

如何使用进度条微调器显示 AlertDialog?

当按下按钮时,我希望它阻止 UI,直到数据加载完成,显示微调器以及消息和标题。

我知道我需要为此使用 asyncTask,但我该如何使用进度条微调器显示对话框?

0 投票
1 回答
2703 浏览

android - Android 更改 new ProgressBar() 的主题

只想更改ONE的主题,因此无法更改全局主题。 ProgressBar

现有代码:

它可以工作,没有错误,但使用默认值。我该如何改变呢?

0 投票
2 回答
1077 浏览

android - Custom progress dialog

How would I do a custom "loading" dialog during an AsyncTask like the one in the Bank of America app, for instance? See:

enter image description here

I basically don't want the popup ProgressDialog but instead one that is embedded into the layout.

0 投票
4 回答
25638 浏览

android - 在 Android 中实现类似于 iOS 的旋转活动指示器

我正在尝试实现类似于我在 Android 中放置的旋转活动。我相信我应该使用 ProgressDialog。我的问题源于如何实际操作 ProgressDialog 使其看起来像活动指示器。

欢迎任何想法。一个例子的链接会更好。

谢谢。 在此处输入图像描述

重新编辑:

我的进步.java

主要的.xml