Activity activity = (Activity) getContext();
new Thread(new Runnable() {
@Override
public void run() {
activity.runOnUiThread(new Runnable() {
@Override
public void run() {
// 在这执行耗时操作
// 重写调用父类方法
Center_Sub_Comm_Copy.super.showSubView();
}
});
}
}).start();
标签:Runnable,耗时,线程,Override,new,Android,public
From: https://www.cnblogs.com/CH520/p/17521708.html