Created
January 10, 2022 19:32
-
-
Save egeysn/404ce6566b0ed146fc50886d0a2bc643 to your computer and use it in GitHub Desktop.
viewBinding
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
public class AddAddresActivity { | |
//activity_add_address.xml | |
private ActivityAddAddressBinding binding; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
binding = ActivityAddAddressBinding.inflate(getLayoutInflater()); | |
setContentView(binding.getRoot()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment