Skip to content

Instantly share code, notes, and snippets.

@krossovochkin
Created February 17, 2019 11:04
Show Gist options
  • Save krossovochkin/dc1e39f949ded635ad8805fc55fd8bfb to your computer and use it in GitHub Desktop.
Save krossovochkin/dc1e39f949ded635ad8805fc55fd8bfb to your computer and use it in GitHub Desktop.
class MainActivity : AppCompatActivity() {
private lateinit var textView: TextView
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
textView = findViewById(R.id.textView)
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