Skip to content

Instantly share code, notes, and snippets.

@codeforfun-jp
Last active January 28, 2022 04:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codeforfun-jp/24f6b6e2af7cabbfc53adb2a9868f28e to your computer and use it in GitHub Desktop.
Save codeforfun-jp/24f6b6e2af7cabbfc53adb2a9868f28e to your computer and use it in GitHub Desktop.
Kotlin Intro #7-3
package com.example.sample
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.TextView
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
val textView: TextView = findViewById(R.id.textView)
textView.text = "こんにちは"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment