how to draw space with color in xamarin.android?

mc 5,186 Reputation points
2025-03-07T13:32:43.38+00:00

I am using canvas to draw text in xamarin.android

and how to draw space with some color ?

for example:

I will draw this is my text the it is empty in s and i I want to using some color to draw the space.

how to do it?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,982 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 72,026 Reputation points
    2025-03-07T16:42:11.05+00:00

    Typically you would draw the colored rectangle, then the text on top.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.