Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
MMAUG Simple Databinding - After binding MainActivity.java
public class MainActivity extends AppCompatActivity {
@Override protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
ActivityMainBinding binding = DataBindingUtil.setContentView(this, R.layout.activity_main);
User user = new User("MeowYLA", "16", "Yangon, Myanmar");
binding.setUser(user);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment