Created
February 10, 2018 13:20
-
-
Save vamsitallapudi/5f95122c140766f38a2123bc7a198821 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
fun ViewGroup.inflate(@LayoutRes layoutRes: Int, attachToRoot: Boolean = false): View { | |
return LayoutInflater.from(context).inflate(layoutRes,this,attachToRoot) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment