mdgspace / rotatingtext Goto Github PK
View Code? Open in Web Editor NEWA periodic text updating library
License: MIT License
A periodic text updating library
License: MIT License
Could this be because I didn't set a size for the text? Is it really needed?
Tested on a Moto G5 plus.
be aware this can cause you a huge memory leak.
I spent few days to find what caused app crash due to memory issue, and this was the problem.
take a look at android monitor, memory, watch "Dump java heap"
It would be cool feature if we could change color for each word dynamically or preset
Nothing appears on the phone screen (honor v8 Android 7.0)
Layout is inflated only after a requestLayout
call is fired after onResume
is called
Hello, thanks for this great library but don't you think minimum Api level 19 is too high.
If its possible can you please bring it down to Api 16.
Thank you
How can I update the text of an existing rotatable?
Hi,
I'm using your API "RotatingText" on my Android app (https://github.com/mdg-iitr/RotatingText).
I've seen a bug: when the text is too long, the last letters overlap on top of each other.
That's because you don't use any layout (dynamiclayout e.g.) in your widget-class RotatingTextSwitcher.
So I use a dynamiclayout. A new problem occurs: it's not animated (in other words: its texts are not rotated). Indeed, I must use layout.draw(canvas); and I can't use canvas.drawTextOnPath(). That explains why there isn't any animation.
Please, can you tell me how to make my dynamiclayout and/or it's text rotate in these conditions?
I have created a well-received Stackoverflow question. A bounty of 300 is available ;-) : https://stackoverflow.com/questions/60028812/android-rotating-text-i-use-dynamiclayout-drawcanvas-but-it-doesnt-animate-a
I hope you will answer me as soon as possible,
Thank you in advance,
Best regards,
Process: com.ekincare.development, PID: 1407
java.lang.ClassCastException: dagger.hilt.android.internal.managers.ViewComponentManager$FragmentContextWrapper cannot be cast to android.app.Activity
at com.sdsmdg.harjot.rotatingtext.RotatingTextSwitcher$9.run(RotatingTextSwitcher.java:287)
at java.util.TimerThread.mainLoop(Timer.java:562)
at java.util.TimerThread.run(Timer.java:512)
2022-06-02 19:06:35.944 1407-2875/com.ekincare.development E/Apxor: Observed Application crash
I Really hope to use your Lib in my App
.
sorry ,after a long time ,I got a ANR. what should I do ? thanks
v1.1
Create a separate branch for these changes.
how do i disable auto slide feature from it??
i would like to slide only one cycle and the effect to be ended.
am i missing? or there is no fuctionality for that.
or i should implement this by some stupid way (eg. disable the view)
??
Last letters overlap on each other when a rotating text is too long. That's because you don't make use of a dynamiclayout.
But if you use it, then you can't animate it.
Could you please find a solution or help me find one?
Thank you!
Best regards,
Right now in the updated code, the texts rotate vertically only. A new feature can be added wherein the entered texts can rotate horizontally.
For every one second a new timer thread is being created.
which is making more CPU usage every second. Can you solve the problem.
Typeface custom_font = Typeface.createFromAsset(getAssets(), "fonts/Reckoner_Bold.ttf");
RotatingTextWrapper rotatingTextWrapper = (RotatingTextWrapper) findViewById(R.id.custom_switcher);
rotatingTextWrapper.setSize(35);
Rotatable rotatable = new Rotatable(Color.parseColor("#FFA036"), 1000, " Why ?", "What ?", " How ?");
rotatable.setSize(35);
rotatable.setAnimationDuration(500);
rotatable.setTypeface(custom_font);
rotatable.setInterpolator(new BounceInterpolator());
rotatingTextWrapper.setContent("?",rotatable );
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.