Created
March 28, 2019 08:23
-
-
Save ismailgungor/6f72e78f430918c47d6a28fc74ea4f24 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( | |
@KBindTranslateView(value = R.id.tv_fail_message, key = "fail_message") holder: View | |
) : AppCompatActivity() { | |
@KBindTranslateView(value = R.id.tv_fail_message, key = "fail_message") | |
lateinit var tvFail: TextView | |
@KBindTranslateView(value = R.id.btn_try, key = "try") | |
lateinit var btnTry: Button | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
setContentView(R.layout.activity_main) | |
} | |
@KBindTranslateView(12, "23") | |
fun customFunction(@KBindTranslateView(34, "21") i: Int) { | |
//Silence is golden | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment