scwang90 / SmartRefreshLayout

🔥下拉刷新、上拉加载、二级刷新、淘宝二楼、RefreshLayout、OverScroll,Android智能下拉刷新框架,支持越界回弹、越界拖动,具有极强的扩展性,集成了几十种炫酷的Header和 Footer。
https://segmentfault.com/a/1190000010066071
Apache License 2.0
24.95k stars 4.95k forks source link

MaterialHeader 下拉刷新时,有阴影,请查看截图 #1570

Open gxg-886 opened 5 months ago

gxg-886 commented 5 months ago

MaterialHeader 下拉刷新时,有阴影,请查看截图 自定义的Header代码 class MyMaterialHeader : MaterialHeader { constructor(context: Context?) : super(context) constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs)

override fun setProgressBackgroundColorSchemeResource(colorRes: Int): MaterialHeader { return super.setProgressBackgroundColorSchemeResource(colorRes) }

override fun setColorSchemeResources(vararg colorIds: Int): MaterialHeader { return super.setColorSchemeResources(*colorIds) }

override fun setSize(size: Int): MyMaterialHeader { mCircleDiameter = ResUtils.getDimensionPixelSize(R.dimen.common_sw_40dp) mCircleView.setImageDrawable(null) mProgress.updateSizes(size) mCircleView.setImageDrawable(mProgress) return this }} 339239295-11675409-f21e-4c3a-a29a-56d1117f9d66 (1)