package com.pukka.jiecheng.utils; import android.app.AlertDialog; import android.content.Context; import android.os.Bundle; import android.widget.ProgressBar; import android.widget.TextView; import com.pukka.jiecheng.R; import com.pukka.libcore.fresco.PkSimpleDraweeView; /** * @Author luoyuhang * @create 2022/1/5 0005 9:27 */ public class UpdateOtherDialog extends AlertDialog { String mUrl; private ProgressBar mProgressBar; private PkSimpleDraweeView iv_icon; private TextView tv_title; public UpdateOtherDialog(Context context, String url) { super(context); this.mUrl = url; } @Override protected void onCreate(Bundle savedInstanceState) { if (null != getWindow()) { getWindow().setBackgroundDrawableResource(android.R.color.transparent); } super.onCreate(savedInstanceState); this.setContentView(R.layout.update_other_dialog); setCancelable(false); mProgressBar = findViewById(R.id.progressBar); tv_title = findViewById(R.id.tv_title); iv_icon = findViewById(R.id.iv_icon); } public ProgressBar getmProgressBar() { return mProgressBar; } public void setIcon(String iconStr) { iv_icon.setImageURI(iconStr); } public void setTitle(String titleStr) { tv_title.setText(titleStr); } }