开发者

Checkbox causes error in Widget

开发者 https://www.devze.com 2023-02-25 03:48 出处:网络
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 me

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

精彩评论

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