Skip to content

Instantly share code, notes, and snippets.

@illuzor
Created September 15, 2018 19:54
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