Created
October 30, 2020 06:26
-
-
Save mlegy/1e2917a092bd75cc8ac687ce3b0d820b 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
@NonNull | |
public static ActivityMainBinding inflate(@NonNull LayoutInflater inflater) { | |
return inflate(inflater, null, false); | |
} | |
@NonNull | |
public static ActivityMainBinding inflate(@NonNull LayoutInflater inflater, | |
@Nullable ViewGroup parent, boolean attachToParent) { | |
View root = inflater.inflate(R.layout.activity_main, parent, false); | |
if (attachToParent) { | |
parent.addView(root); | |
} | |
return bind(root); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment