Created
February 17, 2019 11:04
-
-
Save krossovochkin/dc1e39f949ded635ad8805fc55fd8bfb 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() { | |
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