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)
}
}
Asked
Active
Viewed 27 times
0

Vega
- 27,856
- 27
- 95
- 103

Majd Al Dawood
- 3
- 1
- 3
-
Check the onSuccess and onError callbacks: https://stackoverflow.com/questions/24072176/picasso-image-load-callback. You can stop it there. – Juan Feb 08 '18 at 14:00