https://kotlinlang.org logo
Title
u

user

07/01/2022, 10:51 PM
Kotlin Change ViewText with an ID provided by a String Goal: To get a ViewText resource and edit it from an activity, using a mutable string (because then the string can be changed to alter other ViewTexts in the same function). Context: I'm making a grid using TableRows and TextViews that can be altered to form a sort of map that can be generated from an array. Issue: The binding command does not recognise strings. See my comment "PROBLEM HERE". Tried: getResources.getIdentifier but I've been told that reduces performance drastically. An excerpt...