diff options
author | Winson Chung <winsonc@google.com> | 2011-01-17 16:37:14 -0800 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2011-01-17 16:37:40 -0800 |
commit | 3e6882c3fe0a11941fbb3b78cea5aceb82f16319 (patch) | |
tree | 6f4ff8ccc5174b46e928f3e72a70cf2b86ba38b7 /src/com/android/launcher2/PagedViewWidget.java | |
parent | 94569f47c2fe3c2e04e993379d36e0597925e19f (diff) | |
download | packages_apps_trebuchet-3e6882c3fe0a11941fbb3b78cea5aceb82f16319.zip packages_apps_trebuchet-3e6882c3fe0a11941fbb3b78cea5aceb82f16319.tar.gz packages_apps_trebuchet-3e6882c3fe0a11941fbb3b78cea5aceb82f16319.tar.bz2 |
Enabling cache for widget text views.
Change-Id: I8f1381f6978fabb96d3a3ebe2a25365a2e8e0c48
Diffstat (limited to 'src/com/android/launcher2/PagedViewWidget.java')
-rw-r--r-- | src/com/android/launcher2/PagedViewWidget.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/launcher2/PagedViewWidget.java b/src/com/android/launcher2/PagedViewWidget.java index 07a59ee..9b83f48 100644 --- a/src/com/android/launcher2/PagedViewWidget.java +++ b/src/com/android/launcher2/PagedViewWidget.java @@ -33,6 +33,7 @@ import android.os.HandlerThread; import android.os.Message; import android.util.AttributeSet; import android.view.MotionEvent; +import android.view.View; import android.widget.Checkable; import android.widget.ImageView; import android.widget.LinearLayout; @@ -159,8 +160,10 @@ public class PagedViewWidget extends LinearLayout implements Checkable { image.setImageDrawable(preview); final TextView name = (TextView) findViewById(R.id.widget_name); name.setText(info.label); + name.setLayerType(View.LAYER_TYPE_SOFTWARE, null); final TextView dims = (TextView) findViewById(R.id.widget_dims); dims.setText(mContext.getString(R.string.widget_dims_format, cellSpan[0], cellSpan[1])); + dims.setLayerType(View.LAYER_TYPE_SOFTWARE, null); if (createHolographicOutline) { mIconCache = cache; @@ -178,6 +181,7 @@ public class PagedViewWidget extends LinearLayout implements Checkable { image.setImageDrawable(preview); TextView name = (TextView) findViewById(R.id.wallpaper_name); name.setText(info.loadLabel(packageManager)); + name.setLayerType(View.LAYER_TYPE_SOFTWARE, null); if (createHolographicOutline) { mIconCache = cache; |