am bca520a1: Merge "Use platform assets for brightness scrubber." into ics-mr1

* commit 'bca520a170f84c8be840e629841d0dc7d7cb273b':
  Use platform assets for brightness scrubber.
This commit is contained in:
Daniel Sandler
2011-11-10 04:42:15 +00:00
committed by Android Git Automerger
10 changed files with 6 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 250 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 157 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 571 B

View File

@ -80,10 +80,13 @@ public class ToggleSlider extends RelativeLayout
Drawable slider;
final Resources res = getContext().getResources();
if (checked) {
thumb = res.getDrawable(R.drawable.scrubber_control_disabled_holo);
slider = res.getDrawable(R.drawable.status_bar_settings_slider_disabled);
thumb = res.getDrawable(
com.android.internal.R.drawable.scrubber_control_disabled_holo);
slider = res.getDrawable(
R.drawable.status_bar_settings_slider_disabled);
} else {
thumb = res.getDrawable(R.drawable.scrubber_control_holo);
thumb = res.getDrawable(
com.android.internal.R.drawable.scrubber_control_selector_holo);
slider = res.getDrawable(
com.android.internal.R.drawable.scrubber_progress_horizontal_holo_dark);
}