//celllayout
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.drawable.Drawable;
public static final float INIT_REDUCE_FINAL_VALUE = 0.6f;
public static final float REDUCE_FINAL_VALUE = 0.9f;
public static final float BLOWUP_FINAL_VALUE = 1.0f;
public static final float SCALE_INCREMENT_VALUE = 0.01f;
public static final long SLEEP_TIME = 25;
public static final long INIT_SLEEP_TIME = 25;
public static final long FINISH_ZOOM_OUT_SLEEP_TIME = SLEEP_TIME;
public static final long FINISH_ZOOM_IN_SLEEP_TIME = SLEEP_TIME;
private Matrix matrix = new Matrix();
private AnimationThread at;
private boolean havaOpenFolder;
private boolean dragZoomOutAnimation;
private boolean needScaleCenterImg;
@Override
public void addView(View child, int index, ViewGroup.LayoutParams params) {
final LayoutParams cellParams = (LayoutParams) params;
cellParams.regenerateId = true;
if (cellParams.cellHSpan == mLongAxisCells && cellParams.cellVSpan == mShortAxisCells
&& child instanceof Folder) {
havaOpenFolder = true;
}
super.addView(child, index, params);
}
public int getCellWidth() {
return mCellWidth;
}
public int getCellHeight() {
return mCellHeight;
}
public int getShortAxisCells() {
return mShortAxisCells;
}
public int getLongAxisCells() {
return mLongAxisCells;
}
public int getWidthGap() {
return mWidthGap;
}
public int getHeightGap() {
return mHeightGap;
}
public boolean isOpenFolder() {
return havaOpenFolder;
}
@Override
public void dispatchDraw(Canvas canvas) {
if (isOpenFolder()) {
super.dispatchDraw(canvas);
return;
}
if (DragLayer.isDragging()) {
if (at == null) {
startAnimation(BLOWUP_FINAL_VALUE, REDUCE_FINAL_VALUE, SCALE_INCREMENT_VALUE, SLEEP_TIME); // narrow animation.
}
分享到:
相关推荐
ErrataPrintings3and4.pdf
Arm Generic Interrupt Controller Architecture Specification GIC architecture version 3 and version 4.(ARM GIC V3 and V4)
具有低且宽的相变温度的含有胆甾烯基的二介晶结构液晶化合物,张春波,丛志奇,Low and wide phase transition temperature dimesogenic compounds consisting of a cholesteryl and 4-( trans- 4-n-alkylcyclohexyl...
Laser pulses with energy of ~10 μJ are generated at 46.9 nm on the 3p-3s transition of the Ne-like Ar by a fast capillary discharge setup in both 3- and 4-mm channels. The dependence of the laser ...
1) node dynamics, 2) information flow network, 3) distributed controller, and 4) geometry formation. The classic model of each component is summarized according to the results of the literature survey...
Volume 3: Includes the full system programming guide, parts 1, 2, 3, and 4. Describes the operating-system support environment of Intel® 64 and IA-32 architectures, including: memory management, ...
1、 Intel 64位 兼容32位(IA-32)的指令集参考文档:Intel® 64 and IA-32 architectures software developer’s manual combined volumes_ 1, 2A, 2B, 2C, 2D, 3A, 3B, 3C, 3D, and 4.pdf。由于参考文档太大,所以还...
and you can use it to write Windows applications, Web apps with ASP.NET, and Windows Mobile and Embedded CE apps Gets you up to speed on new C# 4 features such as integration with dynamic languages,...
Define a two-dimensional long integer array A of 3 rows and 4 columns. Fill the elements of the arrays with the numbers 1 - 12 in the order 1 2 3 4 5 6 7 8 9 10 11 12 Define another array B that will ...
Volume 3: Includes the full system programming guide, parts 1, 2, 3, and 4. Describes the operating-system support environment of Intel® 64 and IA-32 architectures, including: memory management, ...
is to program an existing autonomous car, built using a Raspberry Pi 2, an Arduino Mega and 4 DC motors, to successfully navigate a black and white mat which is supposed to function as a model of a ...
Create image processing, object detection and face recognition apps by leveraging the power of machine learning and deep learning with OpenCV 4 and Qt 5 Key Features Gain practical insights into ...
The author’s 30 years of experience in both industrial and university settings brings weight and credibility to the material, and with broad coverage of logic design practices, the 4th Edition gives...
Flash Builder 4 and Flex 4 Bible
In this second edition, the authors have updated the content to the latest standards and included new material on LTEAdvanced where relevant; notably in the discussions of the air interface and ...
很全面的flex教程,里面的实例也很丰富~~不过是英文的~~
The definitive textbook and professional reference on Kalman Filtering - fully updated, revised, and expanded This book contains the latest developments in the implementation and application of ...
By 作者: Jennifer Robbins ISBN-10 书号: 1491960205 ISBN-13 书号: 9781491960202 Edition 版本: 5 出版日期: 2018-05-21 pages 页数: 808 ... CSS Selectors, Levels 3 and4 DD. From HTML+to HTML5