I’m trying to draw text using canvas. I checked out everywhere but those examples rather complex, I could draw text on canvas but it’s not showing like this photo.

I found this code and it’s working, I just need to write like above image.
Paint paint = new Paint();
paint.setColor(Color.BLACK);
paint.setTextSize(30);
paint.setAntiAlias(true);
canvas.drawText("There are 137 days, 9 hours 4 minutes and 36 seconds", 150,150, paint);
Get the font you would like and add it to your assets folder. Lets say the font file name is “pretty.otf”. Then in your code all you have to do is.
To space your text like in the image, add a new line by adding the \n character in your string like this: