//workspace
void snapToScreen(int whichScreen) {
// if (!mScroller.isFinished()) return;
clearVacantCache();
enableChildrenCache();
whichScreen = Math.max(0, Math.min(whichScreen, getChildCount() - 1));
int index = indexOfScreen(mCurrentGroup, mCurrentScreen);
boolean changingScreens = whichScreen != index;
//AAA
CellLayout cell = null;
if (DragLayer.isDragging()) {
if (mDragInfo != null && mDragInfo.cell != null) {
mDragInfo.cell.setVisibility(View.GONE);
}
if (changingScreens) {
if (mLauncher != null && mLauncher.getDragLayer() != null) {
mLauncher.getDragLayer().snap2ScreenWings();
}
cell = (CellLayout) getChildAt(whichScreen);
if (cell != null) {
cell.initAnimation();
}
cell = (CellLayout) getChildAt(index);
if (cell != null) {
cell.finishZoomOutAnimation();
}
}
} else {
cell = (CellLayout) getChildAt(index);
if (cell != null) {
cell.stopAnimation();
}
}
//
mNextScreen = whichScreen;
//mGroupNavi.updateFocusGroup(computeGroup(mNextScreen));
//mGroupNavi.lockGroup(true);
View focusedChild = getFocusedChild();
if (focusedChild != null && changingScreens && focusedChild == getChildAt(mCurrentScreen)) {
//focusedChild.clearFocus();
}
final int newX = whichScreen * getWidth();
final int delta = newX - mScrollX;
final int duration = Math.abs(delta) * 6 / 5;
mScroller.startScroll(mScrollX, 0, delta, 0, duration);
//mScroller.startScroll(mScrollX, 0, delta, 0, Math.abs(delta) * 2);
//final NavigationView nview = (NavigationView)mLauncher.getDrawerNavigator();
//nview.drawNavigator(correctWhichScreen(delta), duration + 790);
invalidate();
int flag = Math.max(0, Math.min(mNextScreen, getChildCount() - 1));
mCurrentGroup = computeGroup(flag);
mCurrentScreen = computeScreen(flag);
}
分享到:
相关推荐
生物力学名著
Chapters 13 and 14 introduce these. It has been variously proposed that the future of the monitoring and control will be based on sensor networks. A comprehensive description of an application driven...
Modal analysis is to be done for a 9bus,39 bus,30 and 14 bus system .Modal analysis with and without connecting a squirrel cage induction generator to the above mentioned systems has to be done....
and14hasbeenmergedoreliminatedwhereverpossible. Otheradditionstotheanalogmaterialincludediscussionof relationsbetweenMOSlogicinvertersandcommon-source amplifiers,distortionreductionthroughfeedback,...
introduced in DFSORT Release 11.1 and was significantly enhanced in Releases 12, 13 and 14. DFSORT R14 PTF UQ99331 (March, 2002), DFSORT R14 PTF UQ90053 (February, 2003), DFSORT R14 PTF UQ95213 and z/...
SP490The SP490 is a low power differential line driver/receiver meeting RS-485 ...is available in 14-pin DIP and 14-pin NSOIC packages for operation over the commercial and industrial temperature ranges.
Fixed missing first target percent value in progressive morphs when using Max 2013 and 14 exporters. Maya exporter updated so only selected blendshape is exported instead of all blendshapes.
Lecture 14 Smoothness of Wavelet Bases: Convergence of the Cascade Algorithm (Condition E) Splines Bases vs. Frames Lecture 15 Signal and Image Processing: Finite Length Signals Boundary Filters and ...
springer 2007年出版的书(共476页),作者是HÜSEYIN ARSLAN (University of South Florida, Tampa, FL, USA)。 本书的结构如下: ...• Applications of cognitive radio and SDR (Chapters 13 and 14)
Also included is a built-in 16-bit timer, 128 LCD segment drive capability, and 14 I/O pins. Typical applications include 2-wire and 3-wire single-phase metering including tamper-resistant meter ...
SUMS14 Information and Coding Theory, Gareth A. Jones, J. Mary Jones (2000) .zip
oracle连接库 classes12 and ojdbc14
Chapter 14: Transport Networks and Protocols Chapter 15: Cellular Communications and Wireless Standards Chapter 16: Network Security Appendix I: Fourier Transforms Appendix II: Common Functions Used ...
Developers will appreciate this approach because it enables them to focus on their apps, and not waste time trying to integrate code snippets or troubleshoot environment setup issues. Practical ...
1.3 Conclusion 14 2 Wireless Transmission Fundamentals 17 2.1 Wireless Channels 17 2.2 The Wireless Communication Graph 21 2.3 Power Assignment and Topology Control 23 2.4 The Wireless Interference ...
Installation_and_Administration_Guide_SEP14-TW 賽門鐵克 SEP14 版 繁體 中文作業手冊
Chapter 14 Adaptive waveform design for radar target classification Nathan A. Goodman Chapter 15 Adaptive waveform design for tracking Antonia Papandreou-Suppappola, Jason Jun Zhang, Bhavana ...
Chapter 14 Binary Search Trees Chapter 15 Balanced Search Trees Chapter 16 Graphs Part III Algorithm Design Methods Chapter 17 The Greedy Method Chapter 18 Divide and Conquer Chapter 19 Dynamic ...
经典图书:加州大学Robert J. Beaver教授经典畅销著作 Introduction to Probability and Statistics, 14th Edition Robert J. Beaver, University of California
Chapter 14 Human–Computer Interaction Part V Quality Assurance and Implementation Chapter 15 Designing Accurate Data Entry Procedures Chapter 16 Quality Asurance And Implementation