美文网首页
window添加布局

window添加布局

作者: 银弹星空 | 来源:发表于2021-04-10 09:25 被阅读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)
    }
    }

    相关文章

      网友评论

          本文标题:window添加布局

          本文链接:https://www.haomeiwen.com/subject/xvqdcctx.html