Split ProgressBar For Android is a library for Showing Progress In a much easier and Beautiful Way.
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.ankit1057:SplitProgressBar:Tag'
}
SplitProgressDialog progressDialog = new SplitProgressDialog(MainActivity.this);
progressDialog.setCancelable(true);
progressDialog.setTitle(R.string.app_name);
progressDialog.resizeDialog(500, 500);
Drawable drawable = new ColorDrawable(Color.BLACK);
progressDialog.setBackgroundColor(drawable);
progressDialog.show();
progressDialog.setProgress(progress);
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.