zoukankan      html  css  js  c++  java
  • 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.
     * 说明:
     *     自定义view的时候出现这个错误,是用错了方法。
     * 
     *                                     2016-6-15 深圳 南山平山村 曽剑锋
     *********************************************************************************/
    
    一、参考文档:
        Android “Only the original thread that created a view hierarchy can touch its views.”
            http://stackoverflow.com/questions/5161951/android-only-the-original-thread-that-created-a-view-hierarchy-can-touch-its-vi
    
    二、解决办法
        将线程中调用的 invalidate(); 换成 postInvalidate();
  • 相关阅读:
    表相关操作
    表的约束
    windows平台MySQL安装
    网络编程2
    Python元类
    并发编程这个只是占位使用而已
    并发编程2
    并发编程1
    Mac装机神器Homebrew
    基于Django框架开发BBS项目
  • 原文地址:https://www.cnblogs.com/zengjfgit/p/5586492.html
Copyright © 2011-2022 走看看