1808182dc874e93582da38d013a4a790d6bc08fc9Joe Onorato/* 2808182dc874e93582da38d013a4a790d6bc08fc9Joe Onorato * Copyright (C) 2010 The Android Open Source Project 3808182dc874e93582da38d013a4a790d6bc08fc9Joe Onorato * 4808182dc874e93582da38d013a4a790d6bc08fc9Joe Onorato * Licensed under the Apache License, Version 2.0 (the "License"); 5808182dc874e93582da38d013a4a790d6bc08fc9Joe Onorato * you may not use this file except in compliance with the License. 6808182dc874e93582da38d013a4a790d6bc08fc9Joe Onorato * You may obtain a copy of the License at 7808182dc874e93582da38d013a4a790d6bc08fc9Joe Onorato * 8808182dc874e93582da38d013a4a790d6bc08fc9Joe Onorato * http://www.apache.org/licenses/LICENSE-2.0 9808182dc874e93582da38d013a4a790d6bc08fc9Joe Onorato * 10808182dc874e93582da38d013a4a790d6bc08fc9Joe Onorato * Unless required by applicable law or agreed to in writing, software 11808182dc874e93582da38d013a4a790d6bc08fc9Joe Onorato * distributed under the License is distributed on an "AS IS" BASIS, 12808182dc874e93582da38d013a4a790d6bc08fc9Joe Onorato * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13808182dc874e93582da38d013a4a790d6bc08fc9Joe Onorato * See the License for the specific language governing permissions and 14808182dc874e93582da38d013a4a790d6bc08fc9Joe Onorato * limitations under the License. 15808182dc874e93582da38d013a4a790d6bc08fc9Joe Onorato */ 16808182dc874e93582da38d013a4a790d6bc08fc9Joe Onorato 17808182dc874e93582da38d013a4a790d6bc08fc9Joe Onoratopackage com.android.systemui.statusbar.tablet; 18808182dc874e93582da38d013a4a790d6bc08fc9Joe Onorato 19808182dc874e93582da38d013a4a790d6bc08fc9Joe Onoratoimport android.content.Context; 20808182dc874e93582da38d013a4a790d6bc08fc9Joe Onoratoimport android.content.res.Resources; 21808182dc874e93582da38d013a4a790d6bc08fc9Joe Onoratoimport android.os.Handler; 22808182dc874e93582da38d013a4a790d6bc08fc9Joe Onoratoimport android.util.AttributeSet; 23808182dc874e93582da38d013a4a790d6bc08fc9Joe Onoratoimport android.util.Slog; 24808182dc874e93582da38d013a4a790d6bc08fc9Joe Onoratoimport android.view.View; 25808182dc874e93582da38d013a4a790d6bc08fc9Joe Onoratoimport android.widget.LinearLayout; 2649371adaca31955b75fcc414f701b51da0595680Daniel Sandlerimport android.widget.RelativeLayout; 27808182dc874e93582da38d013a4a790d6bc08fc9Joe Onoratoimport android.widget.ImageView; 28b0cc50de14dc9e2d0d224803bb523aa7f48904acDaniel Sandlerimport android.view.MotionEvent; 29808182dc874e93582da38d013a4a790d6bc08fc9Joe Onorato 30808182dc874e93582da38d013a4a790d6bc08fc9Joe Onoratoimport com.android.systemui.R; 31808182dc874e93582da38d013a4a790d6bc08fc9Joe Onorato 32808182dc874e93582da38d013a4a790d6bc08fc9Joe Onorato 3349371adaca31955b75fcc414f701b51da0595680Daniel Sandlerpublic class NotificationIconArea extends RelativeLayout { 34808182dc874e93582da38d013a4a790d6bc08fc9Joe Onorato private static final String TAG = "NotificationIconArea"; 35808182dc874e93582da38d013a4a790d6bc08fc9Joe Onorato 36808182dc874e93582da38d013a4a790d6bc08fc9Joe Onorato IconLayout mIconLayout; 37808182dc874e93582da38d013a4a790d6bc08fc9Joe Onorato 38808182dc874e93582da38d013a4a790d6bc08fc9Joe Onorato public NotificationIconArea(Context context, AttributeSet attrs) { 39808182dc874e93582da38d013a4a790d6bc08fc9Joe Onorato super(context, attrs); 40808182dc874e93582da38d013a4a790d6bc08fc9Joe Onorato 413a04ef0adb221d5e0fc21fe86177eaf5c02490b4Daniel Sandler mIconLayout = (IconLayout)findViewById(R.id.icons); 42808182dc874e93582da38d013a4a790d6bc08fc9Joe Onorato } 43808182dc874e93582da38d013a4a790d6bc08fc9Joe Onorato 443a04ef0adb221d5e0fc21fe86177eaf5c02490b4Daniel Sandler static class IconLayout extends LinearLayout { 453a04ef0adb221d5e0fc21fe86177eaf5c02490b4Daniel Sandler public IconLayout(Context context, AttributeSet attrs) { 463a04ef0adb221d5e0fc21fe86177eaf5c02490b4Daniel Sandler super(context, attrs); 47808182dc874e93582da38d013a4a790d6bc08fc9Joe Onorato } 48808182dc874e93582da38d013a4a790d6bc08fc9Joe Onorato 49b0cc50de14dc9e2d0d224803bb523aa7f48904acDaniel Sandler public boolean onInterceptTouchEvent(MotionEvent e) { 50b0cc50de14dc9e2d0d224803bb523aa7f48904acDaniel Sandler return true; 51808182dc874e93582da38d013a4a790d6bc08fc9Joe Onorato } 52808182dc874e93582da38d013a4a790d6bc08fc9Joe Onorato } 53808182dc874e93582da38d013a4a790d6bc08fc9Joe Onorato} 54808182dc874e93582da38d013a4a790d6bc08fc9Joe Onorato 55b0cc50de14dc9e2d0d224803bb523aa7f48904acDaniel Sandler 56b0cc50de14dc9e2d0d224803bb523aa7f48904acDaniel Sandler 57