Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
package com.illuzor.lesson.wallpapers.ui
import android.content.Context
import android.util.AttributeSet
import androidx.constraintlayout.widget.ConstraintLayout
class SquareConstraintLayout(context: Context?, attrs: AttributeSet?) : ConstraintLayout(context, attrs) {
override fun onMeasure(width: Int, height: Int) = super.onMeasure(width, width)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.