suwhs / wATLlib

standalone wATL library
22 stars 2 forks source link

`MultiColumnTextViewEx` brutal caching #6

Closed ointeractive-depot closed 6 years ago

ointeractive-depot commented 6 years ago

I've spend a lot of time to solve the problem when text size don't changed, and understand that it's take part with some kind of caching or something like this, after project build I need to reload an application several times when font size changed. There's no any other libraries which behave so like this.

suwhs commented 6 years ago

hmm, there is no persistent caching, (font size changes forces layout invalidation). Can you provide minimum project to reproduce this?

ointeractive-depot commented 6 years ago

Well, I'm at 1.4.5b now, but problem exists still. Now my project almost same as your ViewPager activity (https://github.com/suwhs/wATL/blob/master/app/src/main/java/su/whs/watl/samples/ViewPagerActivity.java), so you can use your own code to reproduce it if you need. I need to set text size programmaticaly (mPager.getOptions ().setTextSize (25))

ointeractive-depot commented 6 years ago

Seems you was able to reproduce it?)

suwhs commented 6 years ago

found crash in layout calculation thread, fixed

ointeractive-depot commented 6 years ago

Wow, sounds great! What version number does it have now?

suwhs commented 6 years ago

wATLlib version: 1.4.6a (repo up-to-date)

ointeractive-depot commented 6 years ago

Awesome, thank you! But I prefer to use a Gradle to have a new versions.

suwhs commented 6 years ago

compile 'su.whs:wATLlib:1.4.6a'

ointeractive-depot commented 6 years ago

Yes, I know it, thanks)