smartisan | Hammer Research -
kandi X-RAY | smartisan Summary
kandi X-RAY | smartisan Summary
Hammer Research
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of smartisan
smartisan Key Features
smartisan Examples and Code Snippets
Community Discussions
Trending Discussions on smartisan
QUESTION
Smartisan OS has a weather app with such an effect: when changing the format from Celsius to Fahrenheit, the temperature number will scroll like this: Motion blur effect sample
I think it's not a simple blur effect when numbers scrolling, because you can see from the image that these numbers are blurred only in the vertical direction. The numbers scroll first in a low speed, and then faster. And the blur radius is also longer as it scrolls. As for me, this kind of effect is not so easy to achieve.
...ANSWER
Answered 2017-Jul-15 at 09:24Just create a custom view that would always draw on canvas. You have to handle the up and down movement by yourself, you will not be able to use simple built-in ui elements in that case. Once you would like to have the scroll effect, just draw the moving text multiple times, but offset it slightly every time and change it's opacity, depending on it's speed.
Using OpenGL might be an overkill in that case, since this case is just about text. Motion blur would be too difficult and performance heavy to implement and drawing text to canvas a dozen times has only a minor impact on performance.
Hope I could help.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install smartisan
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page