Only the original thread that created a view hierarchy can touch its views.
来源:互联网 发布:狗狗用品专卖店淘宝 编辑:程序博客网 时间:2024/04/27 14:48
报错:
Only the original thread that created a view hierarchy can touch its views.
在回调里面执行了listview的performitemclick的方法
mCarrierListView.performItemClick(mCarrierListView.getChildAt(0),0,mCarrierListView.getItemIdAtPosition(0));
解决办法:
使用handler去做就可以了
//如果有超过一个的 if(mCarriersList.size()>0){ mHandler.post(new Runnable() { @Override public void run() { mCarrierListView.performItemClick(mCarrierListView.getChildAt(0),0,mCarrierListView.getItemIdAtPosition(0)); } }); }
0 0
- Only the original thread that created a view hierarchy can touch its views的相关
- 报Only the original thread that created a view hierarchy can touch its views错误解决
- Only the original thread that created a view hierarchy can touch its views错误
- 报Only the original thread that created a view hierarchy can touch its views错误解决
- 报Only the original thread that created a view hierarchy can touch its views错误解决
- Only the original thread that created a view hierarchy can touch its views错误相关
- Only the original thread that created a view hierarchy can touch its views的相关
- Only the original thread that created a view hierarchy can touch its views
- 关于Only the original thread that created a view hierarchy can touch its views的解决方案
- Only the original thread that created a view hierarchy can touch its views.
- 解决Only the original thread that created a view hierarchy can touch its views
- Only the original thread that created a view hierarchy can touch its views
- 关于Only the original thread that created a view hierarchy can touch its views的解决方案
- Only the original thread that created a view hierarchy can touch its views
- Only the original thread that created a view hierarchy can touch its views
- Only the original thread that created a view hierarchy can touch its views的解决方案
- 【异常】Only the original thread that created a view hierarchy can touch its views.
- 报错:Only the original thread that created a view hierarchy can touch its views.
- 谁是卧底
- HM编码器代码阅读(44)——样点自适应补偿SAO(三)选取最优的SAO模式并确定补偿值
- Android两种播放视频的方法(SurfaceView+MediaPlayer+SeekBar)跟(VideoView+MediaController)
- 信道效率以及信道的吞吐率
- 42:String to Integer (atoi)
- Only the original thread that created a view hierarchy can touch its views.
- leetcode 412 python
- java中初始化顺序
- System.arraycopy() 与 Arrays.copyOf()两个方法的区别
- Android转场动画总结篇(不基于Android5.0)
- openstack入门学习笔记(一) 各组件介绍
- Leetcode 525. Contiguous Array
- 欢迎使用CSDN-markdown编辑器
- java程序日志管理