diff options
author | Michael Jurka <mikejurka@google.com> | 2011-02-24 11:19:57 -0800 |
---|---|---|
committer | Michael Jurka <mikejurka@google.com> | 2011-03-02 14:48:28 -0800 |
commit | 2763be3150d429d338b9848286e9365b4052c100 (patch) | |
tree | 2f3878467b76a80790eed214e422e086f29e5fae /src/com/android/launcher2/CustomizeTrayTabHost.java | |
parent | d72b048e207b8577b36f8c9a685a70046c3c5f58 (diff) | |
download | android_packages_apps_Trebuchet-2763be3150d429d338b9848286e9365b4052c100.tar.gz android_packages_apps_Trebuchet-2763be3150d429d338b9848286e9365b4052c100.tar.bz2 android_packages_apps_Trebuchet-2763be3150d429d338b9848286e9365b4052c100.zip |
Improving performance of All Apps transition
- increased perf ~8fps using hardware layers
Change-Id: Ic6a2c23e9182fdb1ee362cbd72f7813f4e9accf0
Diffstat (limited to 'src/com/android/launcher2/CustomizeTrayTabHost.java')
-rw-r--r-- | src/com/android/launcher2/CustomizeTrayTabHost.java | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/com/android/launcher2/CustomizeTrayTabHost.java b/src/com/android/launcher2/CustomizeTrayTabHost.java new file mode 100644 index 000000000..502917211 --- /dev/null +++ b/src/com/android/launcher2/CustomizeTrayTabHost.java @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2011 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.android.launcher2; + +import android.content.Context; +import android.util.AttributeSet; +import android.widget.TabHost; + +public class CustomizeTrayTabHost extends TabHost implements LauncherAnimatable { + public CustomizeTrayTabHost(Context context) { + super(context); + } + + public CustomizeTrayTabHost(Context context, AttributeSet attrs) { + super(context, attrs); + } + + @Override + public void onLauncherAnimationStart() { + setLayerType(LAYER_TYPE_HARDWARE, null); + } + + @Override + public void onLauncherAnimationEnd() { + setLayerType(LAYER_TYPE_NONE, null); + } +} |