In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)05/31 Report--
In this article Xiaobian for you to introduce in detail "Android how to achieve RotateAnimation center rotation animation effect", the content is detailed, the steps are clear, the details are handled properly, I hope this "Android how to achieve RotateAnimation setting center point rotation animation effect" article can help you solve doubts, following the editor's ideas slowly in-depth, together to learn new knowledge.
In the xml setting:
/ / set the rotation angle at the end of the animation
Set up in the code, mainly the coordinates of xmemy as the center point:
Public void rotateAnim () {Animation anim = new RotateAnimation (0f, 360f, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f); anim.setFillAfter (true); / / set the last state of the animation anim.setDuration (3000); / / set the animation time anim.setInterpolator (new AccelerateInterpolator ()); / / set the inserter imageview.startAnimation (anim);}
Android animation Interpolator inserter, relatively simple and commonly used:
(1) LinearInterpolator: the rate of change of animation is linear from the beginning to the end.
(2) AccelerateInterpolator: the rate of change of animation is an accelerated process from the beginning to the end.
(3) DecelerateInterpolator: from the beginning to the end of the animation, the rate of change is a deceleration process.
(4) CycleInterpolator: from the beginning to the end of the animation, the rate of change is a sine curve that circulates a given number of times.
(5) AccelerateDecelerateInterpolator: from the beginning to the end of the animation, the rate of change is a process of acceleration and then deceleration.
Read here, the "Android how to achieve RotateAnimation central point rotation animation effect" article has been introduced, want to master the knowledge of this article also need to practice and use in order to understand, if you want to know more about the article, welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.