From 021aad952bee3ac9ee4a98c09f1a012359088dd2 Mon Sep 17 00:00:00 2001 From: Adam Powell Date: Tue, 9 Nov 2010 21:28:59 -0800 Subject: First pass at styling progress bars for Holo. Added attribute to let scale drawables size based on the intrinsic width and height as a minimum. This helps prevent artifacts when some 9-patches are used in situations like progress bars. Change-Id: I168a232d3225afe9b5578a05a9b8634a1084404c --- .../res/drawable-hdpi/progress_bg_holo_dark.9.png | Bin 0 -> 162 bytes .../res/drawable-hdpi/progress_bg_holo_light.9.png | Bin 0 -> 154 bytes .../drawable-hdpi/progress_primary_holo_dark.9.png | Bin 0 -> 715 bytes .../progress_primary_holo_light.9.png | Bin 0 -> 465 bytes .../progress_secondary_holo_dark.9.png | Bin 0 -> 164 bytes .../progress_secondary_holo_light.9.png | Bin 0 -> 164 bytes .../res/drawable-mdpi/progress_bg_holo_dark.9.png | Bin 0 -> 1040 bytes .../res/drawable-mdpi/progress_bg_holo_light.9.png | Bin 0 -> 1059 bytes .../drawable-mdpi/progress_primary_holo_dark.9.png | Bin 0 -> 1564 bytes .../progress_primary_holo_light.9.png | Bin 0 -> 1317 bytes .../progress_secondary_holo_dark.9.png | Bin 0 -> 1047 bytes .../progress_secondary_holo_light.9.png | Bin 0 -> 1070 bytes .../res/drawable/progress_horizontal_holo_dark.xml | 32 +++++++++++++++++++++ .../drawable/progress_horizontal_holo_light.xml | 32 +++++++++++++++++++++ core/res/res/values/attrs.xml | 4 +++ core/res/res/values/public.xml | 1 + core/res/res/values/styles.xml | 8 ++++-- 17 files changed, 75 insertions(+), 2 deletions(-) create mode 100644 core/res/res/drawable-hdpi/progress_bg_holo_dark.9.png create mode 100644 core/res/res/drawable-hdpi/progress_bg_holo_light.9.png create mode 100644 core/res/res/drawable-hdpi/progress_primary_holo_dark.9.png create mode 100644 core/res/res/drawable-hdpi/progress_primary_holo_light.9.png create mode 100644 core/res/res/drawable-hdpi/progress_secondary_holo_dark.9.png create mode 100644 core/res/res/drawable-hdpi/progress_secondary_holo_light.9.png create mode 100644 core/res/res/drawable-mdpi/progress_bg_holo_dark.9.png create mode 100644 core/res/res/drawable-mdpi/progress_bg_holo_light.9.png create mode 100644 core/res/res/drawable-mdpi/progress_primary_holo_dark.9.png create mode 100644 core/res/res/drawable-mdpi/progress_primary_holo_light.9.png create mode 100644 core/res/res/drawable-mdpi/progress_secondary_holo_dark.9.png create mode 100644 core/res/res/drawable-mdpi/progress_secondary_holo_light.9.png create mode 100644 core/res/res/drawable/progress_horizontal_holo_dark.xml create mode 100644 core/res/res/drawable/progress_horizontal_holo_light.xml (limited to 'core') diff --git a/core/res/res/drawable-hdpi/progress_bg_holo_dark.9.png b/core/res/res/drawable-hdpi/progress_bg_holo_dark.9.png new file mode 100644 index 0000000..192df6d Binary files /dev/null and b/core/res/res/drawable-hdpi/progress_bg_holo_dark.9.png differ diff --git a/core/res/res/drawable-hdpi/progress_bg_holo_light.9.png b/core/res/res/drawable-hdpi/progress_bg_holo_light.9.png new file mode 100644 index 0000000..223416d Binary files /dev/null and b/core/res/res/drawable-hdpi/progress_bg_holo_light.9.png differ diff --git a/core/res/res/drawable-hdpi/progress_primary_holo_dark.9.png b/core/res/res/drawable-hdpi/progress_primary_holo_dark.9.png new file mode 100644 index 0000000..1a59124 Binary files /dev/null and b/core/res/res/drawable-hdpi/progress_primary_holo_dark.9.png differ diff --git a/core/res/res/drawable-hdpi/progress_primary_holo_light.9.png b/core/res/res/drawable-hdpi/progress_primary_holo_light.9.png new file mode 100644 index 0000000..f119c6a Binary files /dev/null and b/core/res/res/drawable-hdpi/progress_primary_holo_light.9.png differ diff --git a/core/res/res/drawable-hdpi/progress_secondary_holo_dark.9.png b/core/res/res/drawable-hdpi/progress_secondary_holo_dark.9.png new file mode 100644 index 0000000..3c6c5ed Binary files /dev/null and b/core/res/res/drawable-hdpi/progress_secondary_holo_dark.9.png differ diff --git a/core/res/res/drawable-hdpi/progress_secondary_holo_light.9.png b/core/res/res/drawable-hdpi/progress_secondary_holo_light.9.png new file mode 100644 index 0000000..cab3888 Binary files /dev/null and b/core/res/res/drawable-hdpi/progress_secondary_holo_light.9.png differ diff --git a/core/res/res/drawable-mdpi/progress_bg_holo_dark.9.png b/core/res/res/drawable-mdpi/progress_bg_holo_dark.9.png new file mode 100644 index 0000000..316af64 Binary files /dev/null and b/core/res/res/drawable-mdpi/progress_bg_holo_dark.9.png differ diff --git a/core/res/res/drawable-mdpi/progress_bg_holo_light.9.png b/core/res/res/drawable-mdpi/progress_bg_holo_light.9.png new file mode 100644 index 0000000..e286136 Binary files /dev/null and b/core/res/res/drawable-mdpi/progress_bg_holo_light.9.png differ diff --git a/core/res/res/drawable-mdpi/progress_primary_holo_dark.9.png b/core/res/res/drawable-mdpi/progress_primary_holo_dark.9.png new file mode 100644 index 0000000..0502669 Binary files /dev/null and b/core/res/res/drawable-mdpi/progress_primary_holo_dark.9.png differ diff --git a/core/res/res/drawable-mdpi/progress_primary_holo_light.9.png b/core/res/res/drawable-mdpi/progress_primary_holo_light.9.png new file mode 100644 index 0000000..1ba9e34 Binary files /dev/null and b/core/res/res/drawable-mdpi/progress_primary_holo_light.9.png differ diff --git a/core/res/res/drawable-mdpi/progress_secondary_holo_dark.9.png b/core/res/res/drawable-mdpi/progress_secondary_holo_dark.9.png new file mode 100644 index 0000000..a2fe2b3 Binary files /dev/null and b/core/res/res/drawable-mdpi/progress_secondary_holo_dark.9.png differ diff --git a/core/res/res/drawable-mdpi/progress_secondary_holo_light.9.png b/core/res/res/drawable-mdpi/progress_secondary_holo_light.9.png new file mode 100644 index 0000000..3b264ab Binary files /dev/null and b/core/res/res/drawable-mdpi/progress_secondary_holo_light.9.png differ diff --git a/core/res/res/drawable/progress_horizontal_holo_dark.xml b/core/res/res/drawable/progress_horizontal_holo_dark.xml new file mode 100644 index 0000000..ff270b3 --- /dev/null +++ b/core/res/res/drawable/progress_horizontal_holo_dark.xml @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + diff --git a/core/res/res/drawable/progress_horizontal_holo_light.xml b/core/res/res/drawable/progress_horizontal_holo_light.xml new file mode 100644 index 0000000..4935185 --- /dev/null +++ b/core/res/res/drawable/progress_horizontal_holo_light.xml @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + diff --git a/core/res/res/values/attrs.xml b/core/res/res/values/attrs.xml index 5d3dc03..115e59d 100755 --- a/core/res/res/values/attrs.xml +++ b/core/res/res/values/attrs.xml @@ -3021,6 +3021,10 @@ + + diff --git a/core/res/res/values/public.xml b/core/res/res/values/public.xml index ff12e8f..a1b9dc9 100644 --- a/core/res/res/values/public.xml +++ b/core/res/res/values/public.xml @@ -1364,6 +1364,7 @@ + diff --git a/core/res/res/values/styles.xml b/core/res/res/values/styles.xml index f63805b..457175b 100644 --- a/core/res/res/values/styles.xml +++ b/core/res/res/values/styles.xml @@ -1359,6 +1359,9 @@