Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to realize the switching effect of calendar page turning, htc clock page turning and digital page turning by Android

2025-04-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces Android how to achieve calendar page turning, htc clock page turning, digital page turning switching effect related knowledge, detailed and easy to understand, simple and fast operation, has a certain reference value, I believe everyone read this Android how to achieve calendar page turning, htc clock page turning, digital page turning switching effect article will have some gains, let's take a look at it.

Effect drawing:

Custom control to find from the network, the use of relatively simple, specific has not yet had time to study in depth, but first with stupid methods to achieve the desired effect, the subsequent free time will be carefully studied and updated articles,

This demo switching method is a stupid method, that is, by comparing the new number with the old number to switch the digital conversion, the approximate use method is as follows:

//Get the number in the input box int newNumber = Integer.parseInt (etInput.getText().toString()); //Get the digits int nbai = newNumber / 100; int nshi = newNumber % 100 / 10; int nge = newNumber % 10; //Get the digits of the last digit int obai = oldNumber / 100; int oshi = oldNumber % 100 / 10; int oge = oldNumber % 10; //Record the current number oldNumber = newNumber; //Get the difference between the new number and the old number int bai = nbai + 10 - obai; int shi = nshi + 10 - oshi; int ge = nge + 10 - oge;//If the value is greater than 9, subtract 10 if(bai > 9){ bai = bai - 10; } if(shi > 9){ shi = shi - 10; } if(ge > 9){ ge = ge - 10;} //Set the settings that need to be switched several times to the custom control bitflip1.smoothFlip(bai, false); bitflip2.smoothFlip(shi, false); bitflip3.smoothFlip(ge, false); About "Android how to achieve calendar page turning, htc clock page turning, digital page turning switching effect" The content of this article is introduced here, thank you for reading! I believe everyone has a certain understanding of "Android how to realize calendar page turning, htc clock page turning, digital page turning switching effect" knowledge. If you still want to learn more knowledge, please pay attention to 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: 276

*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.

Share To

Internet Technology