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
//code | |
fun loginWithUsernameAndPassword(username: String, password: String) { | |
liveSignInStatus.value = PasswordAuthState.LOADING | |
doAsync { | |
val resultBody = loginManager.loginWithCredential(username, password) | |
when (resultBody.getStatusCode()) { | |
200 -> liveSignInStatus.postValue(PasswordAuthState.SUCCESS) |
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
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<!-- google's material design colours from | |
http://www.google.com/design/spec/style/color.html#color-ui-color-palette --> | |
<!--reds--> | |
<color name="md_red_50">#FFEBEE</color> | |
<color name="md_red_100">#FFCDD2</color> | |
<color name="md_red_200">#EF9A9A</color> |
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
<?xml version="1.0" encoding="utf-8"?> | |
<!-- | |
Google Material Design Color Palette for Android http://www.google.com/design/spec/style/color.html#color-ui-color-palette | |
Spreadsheet used to create this reosurce - http://bit.ly/mdcolor_spreadsheet | |
Link to this colors.xml resource file - http://bit.ly/mdcolorsxml | |
Harshad Kale | |
https://github.com/kalehv | |
--> |