I have a ProgressBar and a login button.
When i click on the login button i show this progressBar and everything worke fine.
But it would be nice if i have a black transparent layer, like the AlertDialog class it do, and only the progressBar has the full bright.
I have a ProgressBar and a login button. When i click on the login
Share
Try to create another class with transculent theme.
For example new class:
And change in AndroidManifest.xml file (check second line):
Now, when you click on button in your class, you will have to only create new intent to open transculent class. OnCreate it will run ProgressDialog which will blur the rest and you will be able see text from the last activity.
You can also try with opening new intents with options onResult, this will allow you open intent – do something – and back to the last activity.
If you want total black, you don’t have to set theme as transculent, just set background to black.