开发者

Checkbox causes error in Widget

I was trying to use Checkbox in Widget. Bug when it's defined in the layou开发者_Go百科t, the widget shows "Problem loading Widget". There is an exception like "error inflating class". Does it mean there are some limits in using checkbox in widget or did I do something wrong?

Thanks, Howard


If by "Widget" you mean "App Widget", then the problem may be that RemoteViews don't support CheckBoxes.

Take a look at the "Creating the App Widget Layout" section in http://developer.android.com/guide/topics/appwidgets/index.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜