From 8c7a580b34d67fefd5f777c7bd6247b2d3960608 Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Fri, 3 Dec 2010 14:46:23 -0800 Subject: Some theme cleanup. - Add new dialog themes without a title bar. - Add new Theme.Holo.NoActionBar.DialogWhenLarge. - Remove old Extended and Theme.Light.Holo themes. - Reorder the public definitions to keep things nice. Also @hide the MipmapDrawable class. Change-Id: Ic69a56e9b28aacf441780633f37f0bc6a475d08a --- graphics/java/android/graphics/drawable/Drawable.java | 2 ++ graphics/java/android/graphics/drawable/MipmapDrawable.java | 3 +++ 2 files changed, 5 insertions(+) (limited to 'graphics/java') diff --git a/graphics/java/android/graphics/drawable/Drawable.java b/graphics/java/android/graphics/drawable/Drawable.java index 2f13bef..6cdafdb 100644 --- a/graphics/java/android/graphics/drawable/Drawable.java +++ b/graphics/java/android/graphics/drawable/Drawable.java @@ -770,8 +770,10 @@ public abstract class Drawable { drawable = new StateListDrawable(); } else if (name.equals("level-list")) { drawable = new LevelListDrawable(); + /* Probably not doing this. } else if (name.equals("mipmap")) { drawable = new MipmapDrawable(); + */ } else if (name.equals("layer-list")) { drawable = new LayerDrawable(); } else if (name.equals("transition")) { diff --git a/graphics/java/android/graphics/drawable/MipmapDrawable.java b/graphics/java/android/graphics/drawable/MipmapDrawable.java index 75fdeed..cd39719 100644 --- a/graphics/java/android/graphics/drawable/MipmapDrawable.java +++ b/graphics/java/android/graphics/drawable/MipmapDrawable.java @@ -27,6 +27,9 @@ import android.util.AttributeSet; import java.io.IOException; /** + * @hide -- we are probably moving to do MipMaps in another way (more integrated + * with the resource system). + * * A resource that manages a number of alternate Drawables, and which actually draws the one which * size matches the most closely the drawing bounds. Providing several pre-scaled version of the * drawable helps minimizing the aliasing artifacts that can be introduced by the scaling. -- cgit v1.1