android - 如何更改 SwipeRefreshLayout 中的样式 progerssbar?

标签 android android-layout

我使用 SwipeRefreshLayout 来更新我的列表。

一切正常。但我不喜欢进度条。它是圆的。并携箭旋转。我见过这样的例子,其中一 strip 从中心移动到边缘。如何设置进度条样式?

private SwipeRefreshLayout swipeLayout;
...
swipeLayout = (SwipeRefreshLayout) v.findViewById(R.id.swipe_guest_list);
        swipeLayout.setColorSchemeColors(Color.RED, Color.GREEN, Color.BLUE, Color.CYAN);
        swipeLayout.setOnRefreshListener(this);

example我需要两个视频

最佳答案

这是我的例子

webframe = WebView

swipeContainer = swipeLayout

swipeContainer.setOnRefreshListener {
        webframe.reload()
        swipeContainer.setColorSchemeColors(Color.WHITE)
        swipeContainer.setProgressBackgroundColorSchemeColor(Color.rgb(0,165,165))
    }

关于android - 如何更改 SwipeRefreshLayout 中的样式 progerssbar?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27162726/

相关文章:

android - 当行宽等于 TextView 的宽度时,为什么 TextView 会断行

java - EditText View 不在新行上扩展

java - 在带有分隔符的 ListView 中显示 JSON

android - 为 Facebook 按钮添加圆角

android - 在使用 selectableItemBackground 属性时为按钮背景使用自定义颜色

java - green dao 如何使用一次查询四个属性

java - LinearLayout 不显示以编程方式添加的图像

iphone - 适用于 Android 和 iPhone 的 Google 天空 map API

android - 检测设备是否振动?

android - 调整viewpager里面的view size,弥补tab height