Guest User

Untitled

a guest
Apr 5th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. public class MainActivity extends AppCompatActivity
  2. implements SampleViewModel.ISampleViewModelEventListener {
  3.  
  4. @Override
  5. protected void onCreate(Bundle savedInstanceState) {
  6. super.onCreate(savedInstanceState);
  7. ActivityMainBinding binding = DataBindingUtil.setContentView(this, R.layout.activity_main);
  8. binding.setViewModel(new SampleViewModel(this, this));
  9. }
  10.  
  11. public void onClickButton() {
  12. Toast.makeText(this, "Hello", Toast.LENGTH_LONG).show();
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment