Preserve Line Breaks from EditText when Printing with Canvas – Kotlin Android Studio
I’m taking in a multiline EditText and storing the value into a variable. I then need to print this using Canvas. I know how to do text wrapping within Canvas, but the issue I’m having is that if the user presses enter when entering text into the EditText, this isn’t preserved when storing it to a variable, and therefore when printing with Canvas.