I have SfChart where part is on C# and xml. There is anyway to put this inside of widget?
Maybe anyway to transfer whole object into widget or export to bitmap (getDrawingCache and DrawingCache are deprecated). Have anyone idea with sample?
Edit: converted to Bitmap working but only on live View(on screen). When trying only in cs. Bitmap is black. On Android.Forms was Platform.CreateRenderer(view) but on Xamarin.android nothing i found.
Greetings from Syncfusion.
Currently, we don’t have support to update the SfChart in Android widget without rendering in the UI. We have already logged a feature request for this requirement, and you can track the feature using the feedback link below.
Feedback: https://www.syncfusion.com/feedback/19685
Regards,
Devakumar D
Related
Is there a possibility to save notebook widget state during export to html in vs code?
The widget appears well but it disappears when I export the notebook in html format. More precisely for my case, I display a map, I add data to it and the map is not displayed in the exported html file.
Thanks.
Currently it's not possible:
https://github.com/microsoft/vscode-jupyter/issues/4404
Thanks for the suggestion! We don't have plans to prioritize implementing this now, and if this issue receives upvotes from the community we will reconsider.
Basically topic.
I am trying to display an image slider with content that I pull from a db. I'm calling for this data in the initstate method. I have managed to do a couple of workarounds, but none of them seem clean enough. I don't necessarily need to call it from initstate, but I need that it shows up as I open the screen.
Thanks in advance.
If it's an image, you can use a package called blurhash, Google it for more information regarding that.
I'm using the "barcode_scan 1.0.0" plugin that is available in dartlang (this is the link: https://pub.dartlang.org/packages/barcode_scan). Now the question, I want to know if anyone knows how to edit the screen when the camera appears ready to read codes:
1) I need to add an appbar with a title.
2) I need to block the automatic screen rotation.
3) I would like you to read codes at 90 degrees. A red bar is also included but at 90 degrees.
I will thank you very much if you can guide me to solve the problem.
regards
You can't with that package because it won't provides you with a way to fit a reader widget in your widget tree (its just calling a native API).
Based on your requirements, you can use some of the other available packages with the same purpose. I can name you a few that support being placed on your widget tree:
fast_qr_reader_view
qr_mobile_vision
flutter_mobile_vision
I understand the "android:initialLayout" element within the xml folder for defining the default layout of an Android homescreen widget. I want to be able to display a "loading your information" on my widget while I am waiting for data...how do I do this. I have tried to display an error message on my widget if there is no connectivity, but it doesn't get past the "android:initialLayout" , so showing code I believe is irrelevant. Correct me if I am wrong please...don't bash me. Any help greatly appreciated!
Yes, the initialLayout is so that your widget displays something before Android has had a chance to call your widget-updating code. This is a great place to put a "Loading..." message.
Once your onUpdate method is called in your widget, that is your chance to get your data. If you have a connectivity problem at that point, you can display an error message at that point. Otherwise, if you successfully get your data, then you can draw you widget with the data.
I'm not sure if I've answered your question, so apologies if I have not. Please clarify a bit more if I have not. The main questions I have are:
Is Android calling your onUpdate function? Log statements can be really helpful for this.
Are you trying to load your data in the background, such as a separate Service, and then reading the results in the widget? Or are you loading the data inside the widget?
I want to display a simple GIF image in a VBox using GTK+ from C. I know that I need to use a GdkPixbuf. But as usual there are no example of doing it. Can anyone provide help?
Also: In GTK+ how can we add a PNG image as background to a widget? Can anyone provide an example?
Forgot something to add this:
forgot to tell u that i am using Glade to develop GUI...
And i have created vBox in Glade and in one of the blocks of the vBox i need to display FIG Image....
Sorry of this...
gdk_pixbuf_new_from_file() -- but see unwind's answer for a better way to do it using a GtkImage widget.
You need to set the background pixmap field in the widget's style structure:
GtkRcStyle *newstyle = gtk_widget_get_modifier_style(widget);
newstyle->bg_pixmap_name[GTK_STATE_NORMAL] = g_strdup(pngfilename);
gtk_widget_modify_style(widget, newstyle);
PS. You can often find code examples by doing a Google search for the function you need an example of. The GTK docs usually don't contain examples for every single function, because that would clutter them up, and the documentation of functions like gdk_pixbuf_new_from_file() is usually pretty straightforward. I've noticed you often post this kind of question and I'm wondering if you are looking for the documentation in the right place. For example, are you using the excellent reference tool DevHelp? On the other hand, the GTK documentation is really missing some important information in a few places. If you have some improvements, why not contribute to the documentation?
A vbox in GTK+ is a widget, that displays other widgets as its children, stacking them vertically.
Unsurprisingly, there is a GTK+ widget dedicated to displaying images; it's called GtkImage. You should use the gtk_image_new_from_file() call to create one, passing it your GIF filename, and then just add that to your vbox. There's no need to create the underlying GDK image yourself.