Comments (11)
Text size is not necessary, it takes the default value of nothing is explicitly set.
Are you experiencing lag or the app freezes ?
Does the app freeze on start or after some time ?
from rotatingtext.
@harjot-oberai
I think both... First lag, then the app freezes completely
And I think the app freezes when trying to start the animation.
Another thing, could it be because I'm using it in a RecyclerView? But there's only 1 item in the RecyclerView using the RotatingText TextView
from rotatingtext.
@harjot-oberai
Or could it be because I want the whole text to be rotatable?
I'm using it like:
rotatingText.setContent("?", rotatable);
Is it wrong?
from rotatingtext.
@harjot-oberai
Not exactly on start. I think it takes a second to load and setup the configuration, and then it starts freezing
from rotatingtext.
I think the app is running out of memory. Mostly because of recycler view. Is your code on github ?
from rotatingtext.
@harjot-oberai
I don't think that's the issue. Disabling the RotatingText, makes the app go back to normal. And it's a new app, so there are no other tasks running or anything.
And the code is not on GitHub, and I cannot share it.
from rotatingtext.
I am saying that the app is running out of memory because of the RotatingText. There are some performance issues in the library that need to be addressed.
I will get back to you tomorrow; I will try to replicate the issue in my phone and try to fix it. Give me some time
from rotatingtext.
This widget has occupied 20% of the CPU and always freeze when it resumed.What's the causeοΌ
from rotatingtext.
yeah my app also freezes on resume... mostly when returning after a while.....
from rotatingtext.
I tracked the problem to TimerTask
. For some reason the timer tasks seem to pause after some time, when the device goes idle. I will have to replace timer tasks with AlarmManager or something of that sort. If someone has any alternate way of invalidating the canvas continuously please feel free to share.
from rotatingtext.
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 );
from rotatingtext.
Related Issues (20)
- Support for API 16 HOT 3
- For every one second a new timer thread is being created. HOT 2
- ANR HOT 2
- It's not work on Android 7.0 HOT 1
- εοΌδ»δΉη©ζγγγ
- Layout not inflated on first start HOT 1
- Please Fix Nugat API
- Right to Left gravity support
- How to rotate a DynamicLayout newly implemented in your API?
- Last letters overlap on each other when a rotating text is too long HOT 1
- Adding horizontal rotation of texts!
- Let's go for v1.1-alpha
- Nothing happen Getting error
- Please, add setContent(String text, ArrayList<Rotation> rotations) method HOT 1
- It's not work on Android 7.0 HOT 8
- Update Text HOT 2
- Add option to stop rotation after one cycle. HOT 3
- MEMORY LEAK !!!! HOT 1
- Option for changing color of the Rotating texts HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rotatingtext.