window添加布局

2021-04-10  本文已影响0人  银弹星空

for (i in 0 until childSize) {
val child = parent.getChildAt(i)
val layoutParams = child.layoutParams as RecyclerView.LayoutParams
val top = child.bottom + layoutParams.bottomMargin
val bottom = top + 5
if (mPaint != null) {
c.drawRect(left.toFloat(), top.toFloat(), right.toFloat(), bottom.toFloat(), mPaint)
}
}

上一篇下一篇

猜你喜欢

热点阅读