blob: 502917211837eb74a6aa57f183d7e50333f661a1 [file] [log] [blame]
Michael Jurka2763be32011-02-24 11:19:57 -08001/*
2 * Copyright (C) 2011 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package com.android.launcher2;
18
19import android.content.Context;
20import android.util.AttributeSet;
21import android.widget.TabHost;
22
23public class CustomizeTrayTabHost extends TabHost implements LauncherAnimatable {
24 public CustomizeTrayTabHost(Context context) {
25 super(context);
26 }
27
28 public CustomizeTrayTabHost(Context context, AttributeSet attrs) {
29 super(context, attrs);
30 }
31
32 @Override
33 public void onLauncherAnimationStart() {
34 setLayerType(LAYER_TYPE_HARDWARE, null);
35 }
36
37 @Override
38 public void onLauncherAnimationEnd() {
39 setLayerType(LAYER_TYPE_NONE, null);
40 }
41}