【问题标题】:Is there any possibility to change speed (make it slower) of androids indeterminate progressbar?有没有可能改变机器人不确定进度条的速度(让它变慢)?
【发布时间】:2019-04-02 14:39:04
【问题描述】:

我的不确定水平进度条速度绝对是太快了

我的进度条在我的应用程序加载时显示(启动画面)。

有人想法降低移动条的速度吗?目前它的工作方式看起来完全愚蠢。

提前感谢您的帮助和您的想法! :-)

【问题讨论】:

    标签: android user-interface progress-bar


    【解决方案1】:

    在你的布局文件中,添加这个属性 android:indeterminateDuration

        <ProgressBar
            android:id="@+id/prbSplashScreen"
            style="?android:attr/progressBarStyleHorizontal"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:indeterminateDuration="1000"
            android:indeterminate="true"/>
    

    如果您想提高速度,请增加此属性。减小此属性可减慢进度条。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-07-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多