MCPcopy Create free account
hub / github.com/Snapchat/Valdi / onMeasure

Method onMeasure

valdi/src/java/com/snap/valdi/views/ValdiView.kt:88–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86 }
87
88 override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) {
89 val width = MeasureSpec.getSize(widthMeasureSpec)
90 val height = MeasureSpec.getSize(heightMeasureSpec)
91
92 ViewUtils.measureValdiChildren(this)
93
94 setMeasuredDimension(width, height)
95 }
96
97 override fun onLayout(p0: Boolean, l: Int, t: Int, r: Int, b: Int) {
98 ViewUtils.applyLayoutToValdiChildren(this)

Callers 1

measureMethod · 0.45

Calls 2

measureValdiChildrenMethod · 0.80
getSizeMethod · 0.45

Tested by

no test coverage detected