Android: AppWidget with custom view not working

前端 未结 4 1002
余生分开走
余生分开走 2020-11-29 02:43

I am creating a appwidget that consists of a single custom view called Foo.

xml/widget.xml:



        
4条回答
  •  余生分开走
    2020-11-29 02:58

    You cannot have ANY custom view used in widget. In fact, even those android-predfined views are not all supported.

    For detailed list of supported widgets/layouts, please read the documentation. Anything other than those documented cannot be placed in widgets.

提交回复
热议问题