Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

Commit

Permalink
Progress dialog bar in accent color
Browse files Browse the repository at this point in the history
  • Loading branch information
M66B committed Oct 21, 2014
1 parent c0cf9ea commit 22d80b6
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ See for more information about XPrivacy 3 [this FAQ](https://github.com/M66B/XPr

**Next release**

* Progress dialog bar in accent color

[Open issues](https://github.com/M66B/XPrivacy/issues?state=open)

**Version 3.4.9 BETA**
Expand Down
34 changes: 34 additions & 0 deletions res/drawable/progress_horizontal.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">

<item android:id="@android:id/background">
<shape>
<corners android:radius="5dip" />
<gradient
android:startColor="#ff9d9e9d"
android:centerColor="#ff5a5d5a"
android:centerY="0.75"
android:endColor="#ff747674"
android:angle="270"
/>
</shape>
</item>

<item android:id="@android:id/secondaryProgress">
<clip>
<shape>
<corners android:radius="5dip" />
<solid android:color="@color/color_accent" />
</shape>
</clip>
</item>

<item android:id="@android:id/progress">
<clip>
<shape>
<corners android:radius="5dip" />
<solid android:color="@color/color_accent" />
</shape>
</clip>
</item>

</layer-list>
1 change: 1 addition & 0 deletions src/biz/bokhorst/xprivacy/ActivityMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -1263,6 +1263,7 @@ protected void onPreExecute() {
mProgressDialog = new ProgressDialog(ActivityMain.this);
mProgressDialog.setMessage(getString(R.string.msg_loading));
mProgressDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
mProgressDialog.setProgressDrawable(getResources().getDrawable(R.drawable.progress_horizontal));
mProgressDialog.setProgressNumberFormat(null);
mProgressDialog.setCancelable(false);
mProgressDialog.setCanceledOnTouchOutside(false);
Expand Down
1 change: 1 addition & 0 deletions src/biz/bokhorst/xprivacy/ActivityShare.java
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,7 @@ protected void onPreExecute() {
mProgressDialog = new ProgressDialog(ActivityShare.this);
mProgressDialog.setMessage(getString(R.string.msg_loading));
mProgressDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
mProgressDialog.setProgressDrawable(getResources().getDrawable(R.drawable.progress_horizontal));
mProgressDialog.setProgressNumberFormat(null);
mProgressDialog.setCancelable(false);
mProgressDialog.setCanceledOnTouchOutside(false);
Expand Down

0 comments on commit 22d80b6

Please sign in to comment.