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
- xPlatform
- Eclipse
- Sqoop
- hadoop
- Express
- 보조정렬
- 공정능력
- Java
- IntelliJ
- Kotlin
- mapreduce
- SPC
- NPM
- tomcat
- plugin
- mybatis
- SSL
- table
- GIT
- MSSQL
- Python
- JavaScript
- R
- Android
- Spring
- window
- vaadin
- react
- SQL
- es6
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' 카테고리의 다른 글
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 |
theme (0) | 2024.05.04 |
android shortcut (0) | 2024.05.02 |
Comments