Open gxg-886 opened 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 }}
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 }}