Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
Tags
- Spring
- 보조정렬
- Eclipse
- SPC
- mapreduce
- MSSQL
- Java
- SSL
- hadoop
- vaadin
- table
- GIT
- JavaScript
- window
- es6
- Android
- xPlatform
- NPM
- R
- Python
- SQL
- mybatis
- IntelliJ
- Kotlin
- Sqoop
- plugin
- 공정능력
- Express
- react
- tomcat
Archives
- Today
- Total
DBILITY
android progress bar color change programmatic 본문
반응형
ProgressBar progressBar = new ProgressBar(this);
progressBar.getIndeterminateDrawable().mutate().setTintList(ColorStateList.valueOf(Color.RED));
Dialog progressDialog = new Dialog(this);
progressDialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
progressDialog.setContentView(progressBar);
progressDialog.setCanceledOnTouchOutside(false);
progressDialog.setOnCancelListener(
new DialogInterface.OnCancelListener() {
@Override
public void onCancel(DialogInterface dialog) {
dialog.dismiss();
}
});
반응형
'android > java' 카테고리의 다른 글
android ANR, Thread, Handler, runOnUiThread, View Handler, AsyncTask, RxJava, Callback Interface (0) | 2024.05.23 |
---|---|
android downloded apk file version check and install (0) | 2024.05.09 |
WindowMetrics 화면 크기 등 (0) | 2024.05.04 |
android shortcut (0) | 2024.05.02 |
android.nonFinalResIds=false (0) | 2024.04.17 |
Comments