Android: AppWidget with custom view not working

前端 未结 4 996
余生分开走
余生分开走 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 03:13

    see the documentation.

    AnalogClock, Button, Chronometer, ImageButton, ImageView, ProgressBar and TextView are the supported views. For layouts you have to use FrameLayout, LinearLayout or RelativeLayout.

提交回复
热议问题