Android ProgressDialog: customizing custom view instead of message - does it work?

The ProgressDialog documentation says:

"A dialog box showing a progress indicator and an optional text message or presentation. Only a text message or presentation can be used at a time.

I managed to work fine with the message, but instead I want to use a custom view - a message with a cancel button. But calling setView () on the ProgressDialog does not seem to have any effect - it shows a progress bar in the dialog box, but nothing else. I tried it only with a TextView with the text "hello", but it does not appear.

Does anyone know how to make this function work? Is this a real feature?

+4
source share
1 answer

A possible workaround is to create a custom dialog using the ProgressBar.

+2
source

All Articles