if (at.isAlive()) {
if (!dragZoomOutAnimation) {
at.setAnimationState(AnimationThread.STATE_ZOOM_OUT);
}
} else if (!at.isNormalOver()) {
startAnimation(getScaleValue(matrix), REDUCE_FINAL_VALUE, SCALE_INCREMENT_VALUE, SLEEP_TIME); // narrow animation.
}
drawCenterImg(canvas, needScaleCenterImg);
} else {
if (at != null) {
if (at.isAlive()) {
at.setEndScale(BLOWUP_FINAL_VALUE);
at.setSleepTime(SLEEP_TIME);
at.setAnimationState(AnimationThread.STATE_ZOOM_IN);
} else {
if (at.getCurrentScale() != BLOWUP_FINAL_VALUE
&& (at.getAnimationState() == AnimationThread.STATE_ZOOM_OUT || dragZoomOutAnimation)) {
startAnimation(getScaleValue(matrix), BLOWUP_FINAL_VALUE, SCALE_INCREMENT_VALUE, SLEEP_TIME); // enlarge animation.
}
}
dragZoomOutAnimation = false;
if (at.isAlive()) {
drawCenterImg(canvas, true);
} else {
stopAnimation();
}
}
}
super.dispatchDraw(canvas);
}
@Override
public void removeView(View view) {
if (view instanceof Folder) {
havaOpenFolder = false;
}
super.removeView(view);
}
public void stopAnimation() {
if (at != null) {
at.stopAnimation();
at = null;
}
dragZoomOutAnimation = false;
matrix.setScale(BLOWUP_FINAL_VALUE, BLOWUP_FINAL_VALUE);
}
public void initAnimation() {
if (at != null) {
at.stopAnimation();
}
dragZoomOutAnimation = true;
needScaleCenterImg = true;
at = new AnimationThread(this, INIT_REDUCE_FINAL_VALUE, REDUCE_FINAL_VALUE, SCALE_INCREMENT_VALUE,
INIT_SLEEP_TIME);
at.start();
}
public void finishZoomInAnimation() {
if (at != null && !FadeAnimationView.isStarted) {
if (at.isAlive()) {
dragZoomOutAnimation = true;
at.setEndScale(BLOWUP_FINAL_VALUE);
at.setSleepTime(FINISH_ZOOM_IN_SLEEP_TIME);
at.setAnimationState(AnimationThread.STATE_ZOOM_IN);
} else {
dragZoomOutAnimation = true;
at = new AnimationThread(this, getScaleValue(matrix), BLOWUP_FINAL_VALUE, SCALE_INCREMENT_VALUE,
FINISH_ZOOM_IN_SLEEP_TIME);
needScaleCenterImg = true;
at.start();
}
}
}
分享到:
相关推荐
艺 术 家: 7and5 音乐风格: Electronic / Ambient / Chillout / New Age 发行厂牌: Nix Records 发行时间:2018 音乐时长: 00:46:29 专辑容量: 282 MB 资源品质: FLAC 专辑曲目: 01. 7and5 : Array of Lights [00:...
Document Number: 335252-0025-Level Paging and 5-Level EPT White PaperRevision 1.1May 20172 Document Number: 335252-002, Revision: 1.1Legal Lines and DisclaimersIntel technologies’ features and ...
Metallocenes of Samarium, Europium, and Ytterbium with the Especially Bulky Cyclopentadienyl Ligands C5H(CHMe2)4, C5H2(CMe3)3, and C5(CHMe2)5 KURZE MITTEILUNGEN Reactions of Free Cyclopentadienyl ...
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 ...
This second edition of Responsive Web Design with HTML5 and CSS3 explains all the key approaches necessary to create and maintain a modern responsive design. The changing way in which we access the ...
Judi has received three teaching awards: two Inspiring Teaching awards at the University of Regina, and the Thomas Lutz College of Arts and Sciences Teaching Award at Washington State University....
[奥莱理] Python and HDF5 (英文版) [奥莱理] Python and HDF5 (E-Book) ☆ 图书概要:☆ Gain hands-on experience with HDF5 for storing scientific data in Python. This practical guide quickly gets you ...
Develop a simple, yet fully functional modern web application using ASP.NET Core MVC, Entity Framework and Angular 5. About This Book Based on the best-selling book ASP.NET Core and Angular 2 Easily ...
This new edition provides you with critical coverage of these three Web authoring standards, and places special focus on the upcoming releases of HTML 5 and CSS 3. Serving as a tutorial and ...
Build on your basic knowledge of HTML5 and JavaScript to create substantial HTML5 applications. Through the many interesting projects you can create in this book, you'll develop HTML5 skills for ...
angular 5 開發在 asp.net core 2 書籍. 書籍含範例程序碼. 教你如何在asp.net core 2 開發angular 5 . Full-Stack Web Development with .NET Core and Angular
Robot Intelligence Technology and Applications 5: Results from the 5th International Conference on Robot Intelligence Technology and Applications (Advances in Intelligent Systems and Computing) ...
Lecture 5 Modulation and Polyphase Representations: Noble Identities Block Toeplitz Matrices and Block z-transforms Polyphase Examples Lecture 6 MATLAB® Wavelet Toolbox Lecture 7 Orthogonal Filter ...
Cryptography and Network Security Principles and Practice 5th manual solution 密码编码学第五版英文答案
With this practical guide, you’ll learn how to use SVG not only for illustrations but also as graphical documents that you can integrate into complex HTML5 web pages, and style with custom CSS....
Create engaging 3D applications for the Web with HTML5 and the emerging web graphics standard, WebGL. With this book, you'll learn hands-on how to take your website's production value to a new level ...
Create visually appealing and feature-rich applications by using Qt 5 and the C++ language Qt 5, the latest version of Qt, enables you to develop applications with complex user interfaces for multiple...