共 7 篇文章
显示摘要每页显示  条
我一直以为ap1会监听list1的变化,重新初始化list1,然后执行相应的更新,现在才知道不对,ap1监听的是new String[]{"listView1 item"}的变化。相当与切断了list1与原始数据源(new String[]{"listView1 item"})的关系,因此之后调用notifyDataSetChanged并不会起作用,因为list1 和inner_list1已经是存在于堆上的完全不...
[大赞]The final local variable xxx cannot be assigned, since it is defined in an enclosing type.出错信息:The final local variable xxx cannot be assigned, since it is defined in an enclosing type“,其中xxx是一个局部变量名。解决的办法:将xxx 作一下封装,用集合或者数组,如果xxx是基本数据类型一般用数组。然后在接下来用到...
Parcel: unable to marshal value在两个activity直接传递List<xxInfo>时,出现Parcel: unable to marshal value异常。在MainActivity页面(MainActivity页面向NextActivity页面传递一个List<xxInfo>): Intent intent = new Intent(this, NextActivity.class); intent.putExtra("list", list); startActivity(intent); ...
空指针ll_status.setLayoutParams(params);上面代码报空指针,ll_status还是params空指针?答案是:ll_status.LayoutParams params = ll_status.getLayoutParams();ll_status.getLayoutParams();上面代码报空指针,谁空指针?答案是:ll_status.总结:调用方法的对象空指针还是方法参数空指针?答案是:调用方法的对象空指针。
Resources$NotFoundException: String resource10-25 15:06:13.325: E/AndroidRuntime(13159): Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x9010-25 15:06:13.325: E/AndroidRuntime(13159): at android.content.res.出错原因是TextView test = (TextView) findViewById(R.id.test); test.se...
帮助 | 留言交流 | 联系我们 | 服务条款 | 下载网文摘手 | 下载手机客户端
北京六智信息技术股份有限公司 Copyright© 2005-2024 360doc.com , All Rights Reserved
京ICP证090625号 京ICP备05038915号 京网文[2016]6433-853号 京公网安备11010502030377号
返回
顶部