Hey
@Paulo Rosa,
The only way I know how to do what you are looking for (
which is obviously not the only way to do it) is to use Canvas.DrawText to create a TextBitmap, then use the Bitmap on your widget by using RV.SetImage.
Something like this, this is just the basics on how I would do it.
'CODE NOT TESTED
Dim BitmapTxtToImg As Bitmap
BitmapTxtToImg.InitializeMutable(Width, Height)
Dim CustomFont As Typeface = Typeface.LoadFromAssets(<YourFont>)
Dim CanvasImage As Canvas
CanvasImage.Initialize2(BitmapTxtToImg)
CanvasImage.DrawText("Hello World", 10dip, 10dip, CustomFont, 28, Colors.RGB(0, 0, 0), "CENTER")
RV.SetImage(<ImageviewOnYourWidget>, CanvasImage.Bitmap)
RV.UpdateWidget
I believe that your ImageView on your widget should now say 'Hello World'.
As I said previously, there are multiple ways to achieve your results, this is how I would do it rightly or wrongly. I'm sure that someone else will give you another method.
Enjoy...