Making text line up vertically when sharing to WhatsApp
I've created a simple scorecard app, that sums users scores while they're playing games (card games, golf etc). I've added in the ability to share the result of their game to WhatsApp and I'd like it to appear a bit like a table, with the player name and then the player score, each player on a new line. I'm trying to make the scores line up vertically, which is challenging given the player names will differ in length. I did this successfully in my IDE on my laptop by working out the length of the longest name and adding the correct amount of whitespace to the shorter names. This prints out to
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.