自定義view文字居中

private fun getTextPoint(metrics: Paint.FontMetrics, rectF: RectF): PointF { //計算文字高度 val th = metrics.descent - metrics.ascent //計算居中矩形的高度 val rh = rectF.bottom - rectF.top //計算文字
相關文章
相關標籤/搜索