Android的 - 在窗口小部件中使用自定义视图 [英] Android - Using custom View in Widget

查看:148
本文介绍了Android的 - 在窗口小部件中使用自定义视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我犯了一个扩展视图,覆盖了3查看Contructors,并试图将其插入我的一个小部件的XML。

唯一的例外是:

  

抛出java.lang.ClassNotFoundException:com.mypackage.myView装载机dalvik.system.PathClassLoader@4001e710

是有可能使用自定义视图中的小工具?

解决方案
  

是可以使用自定义视图   小工具?

如果按部件你的意思是应用小工具,那么,没有。 不能在应用程序的小部件的自定义使用查看

i made a extended a View, overwrote the 3 View Contructors and tried to insert it on my xml of a widget.

The Exception is:

java.lang.ClassNotFoundException: com.mypackage.myView in loader dalvik.system.PathClassLoader@4001e710

is it possible to use custom views in Widgets?

解决方案

is it possible to use custom views in Widgets?

If by "Widgets" you mean "app widgets", then, no. You cannot use custom View classes in app widgets.

这篇关于Android的 - 在窗口小部件中使用自定义视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆