Created
November 15, 2020 06:59
-
-
Save arifvn/befeb65da6a22bdcf8537c37fb612fdc 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
class MainActivity: AppCompatActivity { | |
val buttonLogin by id(R.id.btn_login) | |
// other stuff | |
// .. | |
// .. | |
fun AppCompatActivity.id(viewId: Int) = ViewDelegate(viewId) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment