/*
* Copyright (C) 2008 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.launcherEx;
//import com.android.common.Search;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.SearchManager;
import android.app.StatusBarManager;
import android.app.WallpaperManager;
import android.content.ActivityNotFoundException;
import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.ContentResolver;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.Intent.ShortcutIconResource;
import android.content.IntentFilter;
import android.content.pm.ActivityInfo;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.content.res.TypedArray;
import android.database.ContentObserver;
import android.graphics.Bitmap;
import android.graphics.Rect;
import android.graphics.Canvas;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.ColorDrawable;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.os.Parcelable;
import android.os.SystemClock;
import android.os.SystemProperties;
import android.provider.LiveFolders;
import android.text.Selection;
import android.text.SpannableStringBuilder;
import android.text.TextUtils;
import android.text.method.TextKeyListener;
import android.util.Log;
import android.view.Display;
import android.view.HapticFeedbackConstants;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.view.View.OnLongClickListener;
import android.view.inputmethod.InputMethodManager;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
import android.widget.ImageView;
import android.widget.PopupWindow;
import android.widget.LinearLayout;
import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProviderInfo;
import java.util.ArrayList;
import java.util.List;
import java.util.HashMap;
import java.io.DataOutputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.DataInputStream;
import com.android.launcherEx.DockBar;
import com.android.launcherEx.R;
import com.android.launcherEx.ShortcutInfo;
/**
* Default launcher application.
*/
public final class Launcher extends Activity implements View.OnClickListener,
OnLongClickListener, LauncherModel.Callbacks, AllAppsView.Watcher {
static final String TAG = "Launcher";
static final boolean LOGD = false;
static final boolean PROFILE_STARTUP = false;
static final boolean DEBUG_WIDGETS = false;
static final boolean DEBUG_USER_INTERFACE = false;
private static final int WALLPAPER_SCREENS_SPAN = 2;
private static final int MENU_GROUP_ADD = 1;
private static final int MENU_GROUP_WALLPAPER = MENU_GROUP_ADD + 1;
private static final int MENU_ADD = Menu.FIRST + 1;
private static final int MENU_WALLPAPER_SETTINGS = MENU_ADD + 1;
private static final int MENU_SEARCH = MENU_WALLPAPER_SETTINGS + 1;
private static final int MENU_NOTIFICATIONS = MENU_SEARCH + 1;
private static final int MENU_SETTINGS = MENU_NOTIFICATIONS + 1;
private static final int REQUEST_CREATE_SHORTCUT = 1;
private static final int REQUEST_CREATE_LIVE_FOLDER = 4;
private static final int REQUEST_CREATE_APPWIDGET = 5;
private static final int REQUEST_PICK_APPLICATION = 6;
private static final int REQUEST_PICK_SHORTCUT = 7;
private static final int REQUEST_PICK_LIVE_FOLDER = 8;
private static final int REQUEST_PICK_APPWIDGET = 9;
private static final int REQUEST_PICK_WALLPAPER = 10;
static final String EXTRA_SHORTCUT_DUPLICATE = "duplicate";
static final int SCREEN_COUNT = 5;
static final int DEFAULT_SCREEN = 2;
static final int NUMBER_CELLS_X = 4;
static final int NUMBER_CELLS_Y = 4;
static final int DIALOG_CREATE_SHORTCUT = 1;
static final int DIALOG_RENAME_FOLDER = 2;
private static final String PREFERENCES = "launcher.preferences";
// Type: int
private static final String RUNTIME_STATE_CURRENT_SCREEN = "launcher.current_screen";
// Type: boolean
private static final String RUNTIME_STATE_ALL_APPS_FOLDER = "launcher.all_apps_folder";
// Type: long
private static final String RUNTIME_STATE_USER_FOLDERS = "launcher.user_folder";
// Type: int
private static final String RUNTIME_STATE_PENDING_ADD_SCREEN = "launcher.add_screen";
// Type: int
private static final String RUNTIME_STATE_PENDING_ADD_CELL_X = "launcher.add_cellX";
// Type: int
private static final String RUNTIME_STATE_PENDING_ADD_CELL_Y = "launcher.add_cellY";
// Type: int
private static final String RUNTIME_STATE_PENDING_ADD_SPAN_X = "launcher.add_spanX";
// Type: int
private static final String RUNTIME_STATE_PENDING_ADD_SPAN_Y = "launcher.add_spanY";
// Type: int
private static final String RUNTIME_STATE_PENDING_ADD_COUNT_X = "launcher.add_countX";
// Type: int
private static final String RUNTIME_STATE_PENDING_ADD_COUNT_Y = "launcher.add_countY";
// Type: int[]
private static final String RUNTIME_STATE_PENDING_ADD_OCCUPIED_CELLS = "launcher.add_occupied_cells";
// Type: boolean
private static final String RUNTIME_STATE_PENDING_FOLDER_RENAME = "launcher.rename_folder";
// Type: long
private static final String RUNTIME_STATE_PENDING_FOLDER_RENAME_ID = "launcher.rename_folder_id";
static final int APPWIDGET_HOST_ID = 1024;
private static final Object sLock = new Object();
private static int sScreen = DEFAULT_SCREEN;
private final BroadcastReceiver mCloseSystemDialogsReceiver = new CloseSystemDialogsIntentReceiver();
private final ContentObserver mWidgetObserver = new AppWidgetResetObserver();
private LayoutInflater mInflater;
private DragController mDragController;
private Workspace mWorkspace;
private AppWidgetManager mAppWidgetManager;
private LauncherAppWidgetHost mAppWidgetHost;
private CellLayout.CellInfo mAddItemCellInfo;
private CellLayout.CellInfo mMenuAddInfo;
private final int[] mCellCoordinates = new int[2];
private FolderInfo mFolderInfo;
private DeleteZone mDeleteZone;
private HandleView mHandleView;
private AllAppsView mAllAppsGrid;
private Bundle mSavedState;
private SpannableStringBuilder mDefaultKeySsb = null;
private boolean mWorkspaceLoading = true;
private boolean mPaused = true;
private boolean mRestoring;
private boolean mWaitingForResult;
private Bundle mSavedInstanceState;
private LauncherModel mModel;
private IconCache mIconCache;
private ArrayList<ItemInfo> mDesktopItems = new ArrayList<ItemInfo>();
private static HashMap<Long, FolderInfo> mFolders = new HashMap<Long, FolderInfo>();
private ImageView mPreviousView;
private ImageView mNextView;
private DockBar dockbar; // hmg25 add for dock
// Hotseats (quick-launch icons next to AllApps)
private static final int NUM_HOTSEATS = 2;
private String[] mHotseatConfig = null;
private Intent[] mHotseats = null;
private Dr
没有合适的资源?快使用搜索试试~ 我知道了~
小程序源码 仿Mac的Dock.rar
共371个文件
png:130个
xml:91个
jpg:77个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 150 浏览量
2023-03-28
06:36:13
上传
评论
收藏 10.64MB RAR 举报
温馨提示
免责声明:资料部分来源于合法的互联网渠道收集和整理,部分自己学习积累成果,供大家学习参考与交流。收取的费用仅用于收集和整理资料耗费时间的酬劳。 本人尊重原创作者或出版方,资料版权归原作者或出版方所有,本人不对所涉及的版权问题或内容负法律责任。如有侵权,请举报或通知本人删除。
资源推荐
资源详情
资源评论
收起资源包目录
小程序源码 仿Mac的Dock.rar (371个子文件)
.classpath 351B
config 130B
Thumbs.db 102KB
description 140B
proguard.flags 315B
HEAD 41B
hooks 128B
index 38KB
info 126B
classes.jar 5.8MB
Launcher.java 73KB
LauncherModel.java 69KB
AllApps3D.java 60KB
R.java 56KB
Workspace.java 55KB
CellLayout.java 38KB
LauncherProvider.java 38KB
DragController.java 20KB
Utilities.java 14KB
AllApps2D.java 10KB
DeleteZone.java 10KB
WallpaperChooser.java 8KB
AllAppsList.java 8KB
LiveFolderAdapter.java 8KB
LauncherSettings.java 7KB
DockBar.java 7KB
DragView.java 6KB
ShortcutInfo.java 5KB
InstallShortcutReceiver.java 5KB
Folder.java 5KB
LiveFolder.java 5KB
BubbleTextView.java 5KB
IconCache.java 4KB
ItemInfo.java 4KB
DropTarget.java 4KB
FolderIcon.java 4KB
SymmetricalLinearTween.java 4KB
LauncherAppWidgetHostView.java 4KB
AddAdapter.java 4KB
ApplicationInfo.java 3KB
UninstallShortcutReceiver.java 3KB
UserFolder.java 3KB
DeferredHandler.java 3KB
LauncherApplication.java 3KB
HandleView.java 3KB
LiveFolderIcon.java 3KB
LiveFolderInfo.java 2KB
FastBitmapDrawable.java 2KB
DragLayer.java 2KB
ShortcutsAdapter.java 2KB
LauncherAppWidgetInfo.java 2KB
ClippedImageView.java 2KB
UserFolderInfo.java 2KB
LauncherAppWidgetHost.java 1KB
AllAppsView.java 1KB
FolderInfo.java 903B
DragSource.java 891B
TweenCallback.java 797B
DragScroller.java 782B
Manifest.java 731B
wallpaper_goldengate.jpg 420KB
wallpaper_tree.jpg 385KB
wallpaper_monumentvalley.jpg 377KB
wallpaper_despair.jpg 334KB
wallpaper_field.jpg 285KB
wallpaper_desert.jpg 230KB
wallpaper_canyon.jpg 219KB
wallpaper_electric.jpg 217KB
wallpaper_galaxy.jpg 203KB
wallpaper_brown.jpg 179KB
wallpaper_zanzibar.jpg 162KB
wallpaper_grass_night.jpg 158KB
wallpaper_cloud.jpg 158KB
wallpaper_bluedotgrid.jpg 143KB
wallpaper_nexuspattern.jpg 137KB
wallpaper_nexusrain.jpg 127KB
wallpaper_x67.jpg 125KB
wallpaper_grass.jpg 95KB
wallpaper_hazybluedots.jpg 81KB
wallpaper_ropelights.jpg 71KB
wallpaper_beach.jpg 70KB
wallpaper_mountain.jpg 64KB
wallpaper_path.jpg 62KB
wallpaper_sunrise.jpg 52KB
wallpaper_sunset.jpg 51KB
wallpaper_jellyfish.jpg 50KB
wallpaper_snow_leopard.jpg 45KB
wallpaper_pcut.jpg 41KB
wallpaper_zanzibar.jpg 36KB
wallpaper_road.jpg 29KB
wallpaper_lake.jpg 28KB
wallpaper_goldengate_small.jpg 16KB
wallpaper_lightgrad.jpg 15KB
wallpaper_field_small.jpg 15KB
wallpaper_tree_small.jpg 14KB
wallpaper_monumentvalley_small.jpg 14KB
wallpaper_electric_small.jpg 13KB
wallpaper_despair_small.jpg 12KB
wallpaper_canyon_small.jpg 12KB
wallpaper_bluedotgrid_small.jpg 12KB
共 371 条
- 1
- 2
- 3
- 4
资源评论
金枝玉叶9
- 粉丝: 200
- 资源: 7637
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于智慧水产养殖系统,SpringBoot的简单实践全部资料+高分项目+详细文档.zip
- 基于智慧停车云平台系统,车牌识别,分客户端和服务端两部分组成全部资料+高分项目+详细文档.zip
- 基于智慧消防管理服务系统2.0前端全部资料+高分项目+详细文档.zip
- 基于智慧物流系统-后端部分全部资料+高分项目+详细文档.zip
- 基于智慧图书管理系统WPF版全部资料+高分项目+详细文档.zip
- 基于智慧养老社区平台后台管理系统全部资料+高分项目+详细文档.zip
- 基于智慧校园系统 学生信息管理系统 前后端分离版 前后端 带数据库全部资料+高分项目+详细文档.zip
- 基于智慧消防系统全部资料+高分项目+详细文档.zip
- CBT 3380-2013 船用钢材焊接接头宏观组织及缺欠酸蚀试验方法.pdf
- CBT 3351-2005 船舶焊接接头弯曲试验方法.pdf
- CBT 3487-1992 焊接钢质肋管片.pdf
- CBT 3747-1995 船用铝合金焊接接头质量要求.pdf
- CBT 3715-95 陶质焊接衬垫.pdf
- CBT 3748-1995 船用铝合金焊接工艺评定.pdf
- CBT 3802-1997 船体焊接表面质量检验要求.pdf
- CBT 3770-1996 船舶焊接接头维氏硬度试验方法.pdf
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功