Created
February 17, 2019 11:06
-
-
Save krossovochkin/820c26b3abf4067f1ad52822521bf5db 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 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