Caused by: java.lang.IllegalArgumentException: The handle attribute is must refer to an existing chi
2012-08-22 13:17
447 查看
最近一直在忙着写代码,就忘记了来CSDN上写博客了。哈哈,我真是个懒蛋。。。
今天在做SlidingDrawer,就是类似于抽屉那样的效果,遇到了下面这样的一个问题,
Caused by: java.lang.IllegalArgumentException: The handle attribute is must refer to an existing child.(用有道翻译了一下,大体意思是:这个处理属性必须指向一个现有的孩子。)
最后是这样解决的:
原来配置属性里面有一个 android:handle="@+id/menu" ,而我没有在这个SlidingDrawer中加上这个id是menu的组件,恩恩,就是这样,下面必须有一个id为menu的组件与handle的配置对应起来。
哇哈哈~睡觉去了。
今天在做SlidingDrawer,就是类似于抽屉那样的效果,遇到了下面这样的一个问题,
Caused by: java.lang.IllegalArgumentException: The handle attribute is must refer to an existing child.(用有道翻译了一下,大体意思是:这个处理属性必须指向一个现有的孩子。)
最后是这样解决的:
原来配置属性里面有一个 android:handle="@+id/menu" ,而我没有在这个SlidingDrawer中加上这个id是menu的组件,恩恩,就是这样,下面必须有一个id为menu的组件与handle的配置对应起来。
哇哈哈~睡觉去了。
相关文章推荐
- SlidingDrawer引发java.lang.IllegalArgumentException: The content attribute is must refer to an existin
- Caused by: java.lang.IllegalArgumentException: prefix wsdp is not bound to a namespace
- [Android] View.setTag(key,Object) (java.lang.IllegalArgumentException: The key must be an application-specific resource id.)
- java.lang.IllegalArgumentException: you must specify a way to create the tab content
- Caused by: java.lang.IllegalArgumentException: The servlets the url-pattern which is not permitted
- spring3.2.0与mybatis3.2.7整合出错--Failed to read candidate component class--nested exception is java.lang.IllegalArgumentException
- Java.lang.IllegalArgumentException: You need to use a Theme.AppCompat theme (or descendant) with the
- Caused by: java.lang.IllegalArgumentException: Original must not be null
- Caused by: java.lang.IllegalArgumentException: Filter mapping specifies an unknown filter name strut
- java.lang.IllegalArgumentException: id to load is required for loading 解决方法
- java.lang.IllegalArgumentException: AppIndex: The URI host must match the package name and follow th
- Caused by: java.lang.IllegalArgumentException: At least one JPA metamodel must be present!
- nested exception is java.lang.IllegalArgumentException: object is not an instance of declaring class
- 出现java.lang.IllegalArgumentException: id to load is required for loading的解决方法
- add bindNull to SQLiteDirectCursorDriver to avoid java.lang.IllegalArgumentException: the bind valu
- java.lang.IllegalArgumentException: An AccessDecisionManager is required
- SlidingDrawer ID引发的错误 ava.lang.IllegalArgumentException: The handle attribute is must refer to a
- 解决方案:java.lang.IllegalArgumentException: The observer is null
- 出现java.lang.IllegalArgumentException: id to load is required for loading的解决方法
- java.lang.IllegalArgumentException: You need to use a Theme.AppCompat theme (or descendant) with ...