标签: progress-indicator

冷却器ASCII旋转器?

在控制台应用程序中,可以使用ascii微调器,如GUI等待光标,以指示正在完成工作.一个普通的微调器循环遍历这4个字符:'|','/',' - ','\'

什么是其他一些循环动画序列来为控制台应用程序增添趣味?

user-interface console-application throbber ascii-art progress-indicator

236
推荐指数
14
解决办法
4万
查看次数

当PrimeFaces ajax请求正在进行时,将鼠标光标更改为忙碌模式

在处理JSF中的ajax按钮(特别是primefaces)时,可以将鼠标光标的形式更改为繁忙模式(例如:沙漏)?我希望更改我的光标的形式,而我的p:dataTable在我导航到下一页时加载数据.谢谢.

ajax jsf progress-indicator primefaces mouse-cursor

9
推荐指数
1
解决办法
5221
查看次数

将VBA中的ProgressBar UserForms显示为模态还是无模式更好?

将VBA中的ProgressBar UserForms显示为模态还是无模式更好?在VBA中制定进度指标的最佳做法是什么?

无模式UserForms需要使用Application.Interactive = False,而Modal UserForms本质上阻止与应用程序的任何交互,直到核心过程完成或被取消.

Application.Interactive = False但是,如果使用了,则Esc键会中断代码执行,因此在UserForm和调用过程中都需要使用Application.EnableCancelKey = xlErrorHandler和错误处理(Err.Number = 18).

资源密集型调用程序也能导致CommandButton_ClickUserForm_Activate在无模式用户窗体哑火事件.

通常,使用模态UserForms的进度指示器似乎更简单,因为正在执行的代码完全包含在UserForm模块中,并且不需要传递变量.

但是,对于进度指示器使用模态UserForms的问题是,每个需要进度指示器的过程都需要单独的UserForm模块,因为调用过程必须在UserForm_Activate过程中.

因此,虽然在无模式UserForm中可以有一个可重用的进度指示器,但它比在多个模态UserForms中执行代码的可靠性低.

哪种方式更好?

谢谢!

vba modal-dialog modeless userform progress-indicator

8
推荐指数
1
解决办法
5622
查看次数

更改SystemTray进度指示器颜色

我需要改变颜色的SystemTray.ProgressIndicator颜色,我该怎么办?

我试着设置ForegroundColorSystemTray,它适用于纯文本不Inicator.指示灯始终使用PhoneAccent颜色.

styling progress-indicator windows-phone-7

8
推荐指数
1
解决办法
2406
查看次数

在 Android 中实现内容占位符作为进度指示器

我的问题与这个问题非常相似。我想实现使用这种风格的进度指标:

https://github.com/michalsnik/ember-content-placeholders

那就是用像这里一样动画的灰色矩形替换文本和图像等内容。

我过去经常看到这种情况,例如 Facebook。我很确定 YouTube 应用曾经有这种风格。

问题划分

显而易见的第一个问题是关于如何在 Android 上做到这一点,尤其是如果有一种惯用的、标准的或简单的方法来实现这一点,而第二个问题与此密切相关,因为这是我的

问题

我将如何实现将 a 转换TextView为这样的加载矩形。我可以想象用这个替换我的整个视图结构,但我也不知道从哪里开始动画。

android progress-indicator

7
推荐指数
1
解决办法
1994
查看次数

如何让进度条循环并处于确定模式?

我必须在设备上下载一些图像和视频,并且我喜欢通过在确定模式下覆盖一个圆形进度条来跟踪进度。

问题是,无论如何,ProgressBar 仍然是不确定的。

有没有办法让它循环并处于确定模式?

布局

<ProgressBar
                android:layout_width="40dp"
                android:layout_height="40dp"
                android:progressTint="@color/colorPrimary"
                android:indeterminate="false"
                android:max="100"
                android:layout_gravity="center"
                android:id="@+id/message_media_preview_progress"
                android:visibility="gone"
                />
Run Code Online (Sandbox Code Playgroud)

代码

final ProgressBar progressBar = (ProgressBar) mView.findViewById(R.id.message_media_preview_progress);
progressBar.setVisibility(View.VISIBLE);
progressBar.setProgress(0);
storageController.downloadMedia(context, message.getVideoFile(),
        new ProgressListener<Integer>() {
            @Override
            public void onResult(Integer result) {
                progressBar.setProgress(result);
            }
        },
        new ResultListener<Boolean>() {
            @Override
            public void onResult(Boolean result) {
                if(result) {
                    progressBar.setVisibility(View.GONE);
                    setMediaClickListener(message);
                }else{
                    Toast.makeText(context,"Error downloading file",Toast.LENGTH_SHORT).show();
                }
            }
        });
Run Code Online (Sandbox Code Playgroud)

android progress-indicator android-progressbar material-design

5
推荐指数
1
解决办法
3165
查看次数

Android iconGravity 不适用于具有 CircularProgressIndicator 的 MaterialButton

我创建了一个扩展 MaterialButton 的自定义视图,在加载时用 CircularProgressIndicator 替换可绘制对象。

但是,当我用 CircularProgressIndicator 替换可绘制对象时, iconGravity 不再起作用。我不明白我做错了什么。

我已经能够将课程归结为:

class LoadingButton constructor(context: Context) : MaterialButton(context) {

    private val progressIndicatorDrawable by lazy {
        val progressIndicatorSpec = CircularProgressIndicatorSpec(context, null, 0, R.style.Widget_MaterialComponents_CircularProgressIndicator_ExtraSmall)
        progressIndicatorSpec.indicatorColors = intArrayOf(getColor(context, R.color.white))
        IndeterminateDrawable.createCircularDrawable(context, progressIndicatorSpec).apply {
            setVisible(true, true)
        }
    }

    init {
        // the following drawable is aligned to the start of the view (incorrect).
        icon = progressIndicatorDrawable
        // the following drawable is aligned to the start of the text (correct).
        // icon = DrawableUtil.getDrawable(context, R.drawable.icon_delete)
        text = …
Run Code Online (Sandbox Code Playgroud)

android progress-indicator android-gravity material-components material-components-android

5
推荐指数
1
解决办法
906
查看次数

4
推荐指数
1
解决办法
2184
查看次数

需要使用T:R:G mod的Perl system()命令的进度指示器

我想要一个获取Perl输出的进度指示器

   system('make')
Run Code Online (Sandbox Code Playgroud)

并且对于从make命令输出到STDOUT的每一行,我想输出一个点作为进度指示器.不幸的是,我正在使用Term :: ReadLine :: Gnu Perl mod.

在make命令运行时,如何重定向STDOUT以捕获和计算行?

perl progress-indicator libreadline

4
推荐指数
1
解决办法
1449
查看次数