Created
January 6, 2021 13:50
-
-
Save gokmenbayram/014800a3f9ebc098f360140c268a398d to your computer and use it in GitHub Desktop.
This file contains hidden or 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() { | |
lateinit var arrayTxt: TextView | |
var list = ArrayList<String>() | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
setContentView(R.layout.activity_main) | |
arrayTxt = findViewById(R.id.array_txt) | |
list.add(resources.getString(R.string.ArrayValue)) | |
arrayTxt.text = list[0] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment