Hello,
I've tested your project and made it display dynamic data from the firebase, you could refer to the following code:
public void Draw(ICanvas canvas, RectF dirtyRect)
{
canvas.FontColor = Colors.Blue;
canvas.FontSize = 18;
canvas.Font = Font.Default;
FirebaseHelper firebaseHelper = new FirebaseHelper();
var books = Task.Run(() => firebaseHelper.GetAllBooksAsync()).Result;
int i = 0;
foreach (var book in books)
{
i++;
canvas.DrawString(book.Title, 100, 50 * i, HorizontalAlignment.Center);
}
}
If you want to learn more about GraphicsView
, you could refer to this official demo: GraphicsViewDemos.
Best Regards,
Alec Liu.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.