标签:mkt err ble -- ipo over art tac lse
package com.example.administrator.mktproject
import android.os.Build
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.os.Looper
import android.os.SystemClock
import android.support.annotation.RequiresApi
import android.widget.Toast
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatActivity() {
@RequiresApi(Build.VERSION_CODES.LOLLIPOP)
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
btn.setOnClickListener {
btn.mBtnAinim()//开始加载动画
val str = et.text.toString()
Thread(Runnable {
Thread.sleep(2000)
Looper.prepare()
if (str == "是") {
runOnUiThread({
btn.endAnim("知道就行!弟弟!")
})
} else {
runOnUiThread({
btn.endAnim("你就是弟弟!")
})
}
Looper.loop()
}).start(http://www.my516.com)
}
}
}
---------------------
标签:mkt err ble -- ipo over art tac lse
原文地址:https://www.cnblogs.com/liyanyan665/p/11299152.html