Skip to content

Instantly share code, notes, and snippets.

@egeysn
Created January 10, 2022 19:32
Show Gist options
  • Save egeysn/404ce6566b0ed146fc50886d0a2bc643 to your computer and use it in GitHub Desktop.
Save egeysn/404ce6566b0ed146fc50886d0a2bc643 to your computer and use it in GitHub Desktop.
viewBinding
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