【问题标题】:how can i make the progressdialog stop after the data returns数据返回后如何使progressdialog停止
【发布时间】:2018-02-08 13:56:31
【问题描述】:
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)


    }
}

【问题讨论】:

标签: android


【解决方案1】:

你可以使用 pd.dismiss();这是删除它的方法。

【讨论】:

    猜你喜欢
    • 2021-11-02
    • 1970-01-01
    • 2011-09-24
    • 2021-10-26
    • 1970-01-01
    • 2016-08-16
    • 2017-03-21
    • 1970-01-01
    • 2018-02-19
    相关资源
    最近更新 更多