public void setWorkspace(Workspace workspace) {
this.workspace = workspace;
}
public void setGroupNavi(GroupNavigation groupNavi) {
this.groupNavi = groupNavi;
}
public static boolean isDragging() {
return dragging;
}
public void doWingsAnimation() {
needWingsAnimation = true;
}
public void doNotWingsAnimation() {
needWingsAnimation = false;
}
public void snap2ScreenWings() {
haveGroupChange = false;
doWingsAnimation();
}
public void snap2GroupWings() {
transferAtListener.clearAnimationState();
haveGroupChange = true;
changeWingsAnimationState = true;
doWingsAnimation();
}
private static void setDraging(boolean flag) {
dragging = flag;
}
private void findCellPoint(DropTarget dropTarget, int[] coordinates, float x, float y) {
if (mDragging && dragObjectInfo != null && dropTarget != null) {
try {
CellLayout current = (CellLayout) workspace.getCurrentCellLayout();
if (current != null) {
if (dropTarget instanceof FolderIcon && !(dropTarget instanceof LiveFolderIcon)
&& dragObjectInfo.spanX == 1 && dragObjectInfo.spanY == 1
&& !(dragObjectInfo.cell instanceof FolderIcon)) {
current.pointToCellExact(coordinates[0], coordinates[1], cellPosition);
} else {
if (current != currentBak || vacantCell == null) {
vacantCell = current.findAllVacantCells(null, mOriginator);
currentBak = current;
}
if (dropTarget.getClass().equals(groupNavi.getChildAt(0).getClass())) {
if (dragObjectInfo.group == -1 || dragObjectInfo.group != workspace.getCurrentGroup()) {
int[] cellXY = new int[2];
if (current.getAvailableCell(cellXY, dragObjectInfo.spanX, dragObjectInfo.spanY)) {
cellPosition = cellXY;
} else {
cellPosition = null;
}
} else {
cellPosition = new int[2];
cellPosition[0] = dragObjectInfo.cellX;
cellPosition[1] = dragObjectInfo.cellY;
}
} else {
cellPosition = current.findNearestVacantArea((int) (x - mTouchOffsetX),
(int) (y - mTouchOffsetY), dragObjectInfo.spanX, dragObjectInfo.spanY, vacantCell,
null);
}
}
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
分享到:
相关推荐
guidelines and practical implementation details on Oracle features and functions. For example, Oracle has a really neat feature called parallel execution. The Oracle documentation tells you how to use...
2To10And10To2.py
Oracle High Performance Tuning for 9i and 10g(CHM Part1~Part2)
Oracle High Performance Tuning for 9i and 10g.chm
Oracle High Performance Tuning for 9i and 10g(CHM Part1~Part2)
ANSI B18.16.3M - Property Class 5 and 10 - Metric M12 x 1.75 金属类型.prt
Thomas Kyte的三本大作part1(因上传限制分成2部分): Effective Oracle by Design Expert One-on-One Oracle Apress expert oracle database architecture 9i and 10g
Thomas Kyte的三本大作part2(因上传限制分成2部分): Effective Oracle by Design & Expert One-on-One Oracle & Apress expert oracle database architecture 9i and 10g
标题“Windows-7-Games-For-Windows-8-and-10-Multilanguage-x86-x64.zip”指的是一个包含Windows 7经典游戏的软件包,它被设计为适用于Windows 8和Windows 10操作系统,且支持多语言环境。这个压缩包可能包含了32位...
Features updated coverage of multimedia, Gigabit and 10 Gbps Ethernet, WiFi/IEEE 802.11 wireless LANs, security, and much more. Ideal for professional reference or self-study. For Product Development...
This text covers the three parts of tuning an Oracle database: data modeling, SQL code tuning, and physical database configuration, and explains both problem detection and resolution
This text covers the three parts of tuning an Oracle database: data modeling, SQL code tuning, and physical database configuration, and explains both problem detection and resolution.
In Figure 1, there are 8 black disks and 10 white disks on the track. You may spin the turnstile to flip the three disks in it or shift one position clockwise for each of the disks on the track The ...
sampling by Monte Carlo (Chapters 2–5 and 10), generation of trajectories of stochastic differential equations (Chapters 6, 7, and 11), and numerical solutions to master equations (Chapters 8 and 9),...
iOS 10 SDK Development: Creating iPhone and iPad Apps with Swift by Chris Adamson English | 24 Mar. 2017 | ASIN: B071RRCK9R | 264 Pages | AZW3 | 5.24 MB All in on Swift! iOS 10 and Xcode 8 make it ...
PostgreSQL bills itself as the world’s most ...This book focuses on PostgreSQL versions 9.5, 9.6, and 10, but we will cover some unique and advanced features that are also present in prior versions
Lecture 10 Refinement Equation: Iterative and Recursive Solution Techniques Infinite Product Formula Filter Bank Approach for Computing Scaling Functions and Wavelets Lecture 11 Orthogonal Wavelet ...
Control, and Dynamics and/or presented at various technical meetings during the past 10 years. Minor typographical errors of the first edition have been corrected. All of the material of the first ...
In addition, it is expected that we will witness a 10 000-fold growth in wireless data traffic by the year 2030. Such unprecedented increases in mobile data traffic and network loads are pushing ...