Created
June 18, 2015 06:12
-
-
Save yelinaung/300685834129c312325e to your computer and use it in GitHub Desktop.
MMAUG Simple Databinding - After binding MainActivity.java
This file contains hidden or 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 { | |
@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