Created
October 17, 2016 21:26
-
-
Save v3n3/2483cc722ce4c800808b7122c1be3988 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
public class MainActivity extends AppCompatActivity { | |
ActivityMainBinding binding; | |
MainViewModel viewModel; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
viewModel = new MainViewModel(); | |
binding = DataBindingUtil.setContentView(this, R.layout.activity_main); | |
binding.setModel(viewModel); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment