”只能在UI主线程中更新View“。这句话很熟悉吧?来来,哥们,看一下下面的例子@OverrideprotectedvoidonCreate(BundlesavedInstanceState){super.onCreate(savedInstanceState);setContentView(R.layout.activity_main);tv=(TextView)findViewById(R.id.tv);Thread.currentThread().setName("UIThread")...
查看全文