Skip to content

Instantly share code, notes, and snippets.


illuzor/ProgressDialog.kt Secret

Last active Sep 15, 2018
What would you like to do?
import android.os.Bundle
import android.view.LayoutInflater
import android.widget.TextView
import com.illuzor.lesson.wallpapers.R
class ProgressDialog : DialogFragment() {
lateinit var title: String
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
val container = LayoutInflater.from(context).inflate(R.layout.dialog_progress, null)
container.findViewById<TextView>( = title
return AlertDialog.Builder(activity)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.