i made a extended a View, overwrote the 3 View Contructors and tried to insert it on my xml of a widget.
The Exception is:
java.lang.ClassNotFoundException: com.mypackage.myView in loader dalvik.system.PathClassLoader@4001e710
is it possible to use custom views in Widgets?
But you could use an ImageView which is supported in a widget:
Bitmap mBitmap = Bitmap.createBitmap(mWidht, mHeight, Bitmap.Config.ARGB_8888);
Canvas canvas = new Canvas(mBitmap);
canvas.drawText("test", 0, 30, new Paint());
remoteViews.setImageBitmap(viewID, mBitmap);
See this post for more information
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With