package com.majd.volleyapp
class ImageAct : AppCompatActivity() {
var url: String = "http://sdkas.com/logo.gif"
override fun onCreate(savedInstanceState: Bundle ?){
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_image)
var pd = ProgressDialog(this)
pd.setMessage("Please Wait....")
pd.setProgressStyle(ProgressDialog.STYLE_SPINNER)
pd.show()
Picasso.with(this).load(url).into(imageView)
}
}
答案 0 :(得分:0)
你可以使用pd.dismiss();这是删除它的方法。