Android Textview, Settext Using Multiple Variables Concated Together
I am pulling data from a database, returning the values in an instance of a class. In my onCreate method of my Activity, I am setting the content view and then running the followi
Solution 1:
Like you said, you used a StringBuilder. My suspicion is that your scala.collection.mutable object has encoding that does not allow smooth concatenation of its items. I strongly suggest you wrap the concatenated string (including just textFirstName and textLastName, if you're going to use them individually) in a Scala StringBuilder. If you would like to use the java.lang.StringBuilder, then you can convert a Scala StringBuilder by simply wrapping the Scala StringBuilder with the java.lang.Stringbuilder, which is detailed here. Hope that helped!
Post a Comment for "Android Textview, Settext Using Multiple Variables Concated Together"