Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gxg-886 opened this issue Jun 17, 2024 · 0 comments
Open

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

gxg-886 opened this issue Jun 17, 2024 · 0 comments

Comments

@gxg-886
Copy link

gxg-886 commented Jun 17, 2024

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant