I have a simple widget on the homescreen, it loads successfully after the phone restarts, but it takes some time And during this period (~ 5-10 seconds) there is no idea where the widget is.
I have tried some other widgets and they load something
some screens
Just after reboot.
/ P>
And after some time
I tested callback That my provider receives:
10-27 21: 11: 29.486 on 10-27 21: 11: 29.496 on 10-27 21: 11: 29.506 update
so they are almost at the same time.
Perhaps some (may be the layout) feature as "widgetViewBeforLoaded" or smth others?
I have detected the problem.
In it, Italia Widget loads only the layout of your widget and does not fill any information in it.
My widget layout was:
Android: Image = "BackgroundView" Android: Layout_width = "FillPart" Android: layout_height = "fill_parent" /> & Lt; TextView Android: id = "@ + id / widgetText" style = "@ style / widget_text" />
And in this case there is no text and background in wigdets, for example it is possible to change the layout by defining it for example:
& lt ; ImageView Android: Android: AD = "@ + ID / View Background" Android: Layout_width = "Phil_perrent" Android: Layout_Hehil = "FellParent" Android: Background = "@ Drawable / Round_bg" /> & Lt ;! - DEFAULT BG! - & gt; & Lt; TextView Android: id = "@ + id / widgetText" style = "@ style / widget_text" Android: text = "Loading ..." /> & Lt ;! - DEFAULT TEXT! - & gt;
Comments
Post a Comment