In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
 
            
                     
                
2025-10-31 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.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about

The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r


A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from

Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





 
             
            About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.