Last active
April 14, 2022 05:06
-
-
Save communikein/ab567846353cced76c427ee52881b6a5 to your computer and use it in GitHub Desktop.
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 UserDetailActivity extends AppCompatActivity { | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
DataBindingIncludeMainLayout mBinding = DataBindingUtil | |
.setContentView(this, R.layout.data_binding_include_main_layout); | |
User user = new User("username", "password"); | |
mBinding.setMainUser(user); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to import DataBindingUtil and DataBindingIncludeMainLayout?