我开始在我的最新项目中实现Material Theme,为新L版本的推出做好准备.
我一直在阅读材料设计指南并找到了这个.
UI颜色应用程序
选择你的调色板
通过在辅助调色板中选择三种颜色和一种强调颜色来限制颜色选择.强调颜色可能需要也可能不需要后退选项
它或多或少地解释了如何在应用程序上实现这些色调,包括强调色,但在使用SwipeRefreshLayout进度条在我的应用程序上使用主色时,它感觉不对.

应该是强调色和android:colorPrimary?之间的混合?
有什么想法吗?关于在我错过的材料设计指南中实施进度条有什么解释吗?
提前致谢
我对Android很新,我正在谷歌网站上探索示例代码.我目前的代码是SwipeRefreshLayout:http://developer.android.com/samples/SwipeRefreshLayoutBasic/index.html
在代码中,我们看到正在为列表视图执行SwipeRefreshLayout,换句话说,如果向下拖动列表视图,则会触发该方法并且listview将自行刷新.
<android.support.v4.widget.SwipeRefreshLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/swiperefresh"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ListView
android:id="@android:id/list"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</android.support.v4.widget.SwipeRefreshLayout>
Run Code Online (Sandbox Code Playgroud)
让我感到困惑的是,当您向下拖动时,进度动画栏的代码中没有布局显示在列表视图的顶部.你认为SwipeRefreshLayout在你向下拖动时自动生成一个进度动画条而不需要用户在xml中为它指定任何布局吗?
例如,如果想要在进度动画栏的两端放置填充,以便在刷新时动画不会触摸屏幕的末端,那么如何进行操作?
该https://developer.android.com/reference/android/support/v4/widget/SwipeRefreshLayout.html并没有真正说什么.