Skip to content

Instantly share code, notes, and snippets.

@krossovochkin
Created February 17, 2019 11:06
Show Gist options
  • Save krossovochkin/820c26b3abf4067f1ad52822521bf5db to your computer and use it in GitHub Desktop.
Save krossovochkin/820c26b3abf4067f1ad52822521bf5db to your computer and use it in GitHub Desktop.
class ButterKnifeAcivity : AppCompatActivity() {
@BindView(R.id.textView)
lateinit var textView: TextView
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
ButterKnife.bind(this)
update()
}
private fun update() {
textView.text = "Text"
textView.setTextColor(Color.RED)
textView.textSize = 14.0f
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment