Last active
April 8, 2020 13:08
-
-
Save diousk/dd17b61865e9040d8d54ae4812603b40 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
view.addOnLayoutChangeListener(object : View.OnLayoutChangeListener { | |
override fun onLayoutChange( | |
view: View, | |
left: Int, top: Int, right: Int, bottom: Int, | |
oldLeft: Int, oldTop: Int, oldRight: Int, oldBottom: Int | |
) { | |
view.removeOnLayoutChangeListener(this) | |
// now you can do something on the view | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment