Last active
October 18, 2017 06:26
-
-
Save chetdeva/127895701c180b86d4faa0b57d99b55a 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 implements MainHandler { | |
private ActivityMainBinding binding; | |
private LoginModel model = new LoginModel(); | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
binding = DataBindingUtil.setContentView(this, R.layout.activity_main); | |
binding.setModel(model); | |
binding.setHandler(this); | |
} | |
@Override | |
public void onLoginClicked(String email, String password) { | |
Toast.makeText(this, "Email: " + email + "\nPassword: " + password, Toast.LENGTH_SHORT).show(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment