update ui layout
[freespace.git] / weibosrc / com / weibo / view / DragLayer.java
blob1fc119d729987a12fe52fc4f439e1a0d6343bd74
1 /*
2 * Copyright (C) 2008 The Android Open Source Project
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 package com.weibo.view;
19 import android.content.Context;
20 import android.util.AttributeSet;
21 import android.view.MotionEvent;
22 import android.view.KeyEvent;
23 import android.view.View;
24 import android.widget.FrameLayout;
26 /**
27 * A ViewGroup that coordinated dragging across its dscendants
29 public class DragLayer extends FrameLayout {
31 /**
32 * Used to create a new DragLayer from XML.
34 * @param context The application's context.
35 * @param attrs The attribtues set containing the Workspace's customization values.
37 public DragLayer(Context context, AttributeSet attrs) {
38 super(context, attrs);
42 @Override
43 public boolean dispatchKeyEvent(KeyEvent event) {
44 return super.dispatchKeyEvent(event);