Comments (9)
Okay, so this is a problem caused by internal measurement logic in TextView. TextView will not measure itself again if it believes there has been no change to its content. As recycler view sets exact dimensions for the non scrolling axis, this crops up whenever a text view has been rebound and the width is to be changed. The workaround to force TextView to measure itself again by some method.
from superslim.
One solution is to not use the match_parent value for layout_width for TextViews that are in a view group.
from superslim.
Another is to use different viewTypeIds for views intended for different layouts.
from superslim.
So far I have been unable to work around the problem from the SuperSLiM end of things. :(
from superslim.
Closing for now, people can resurrect this if they want to look into it again.
from superslim.
Maybe leave this open so people can see/contribute, or make a note of it in the docs?
from superslim.
I was going to note it in the docs, but sure, I'll leave it open too.
from superslim.
Maybe report this as an issue to AOSP issue tracker?
from superslim.
I don't think it is a bug. I mean, TextView and RecyclerView are both doing the correct thing. For now, I don't plan on doing anything about this, but in the future I might see if there is something I can do; patching RecyclerView, or perhaps some kind of change to SuperSLiM.
from superslim.
Related Issues (20)
- Flexbox layout
- Dynamic sticky content
- Built in elevation change for sticky content.
- Infinite scroll
- Collapsible/expandable sections
- Sticky footers weirdly wobble on horizontal scroll. HOT 1
- Toggling collapsible sections loses items.
- Prepare milestone 5 release
- Update Readme.md
- On layout a sticky footer always sits above sticky inset (section state inset parameter).
- Sticky footer HOT 2
- RecycleView scrolls over sticky header
- Crash On RecyclerView Refresh
- Does SuperSLiM supports sub headers ? HOT 10
- Mocking framework
- i cannot build the project
- NPE at LayoutManager#onItemsUpdated
- Androidx HOT 1
- Is this covered by the Apache 2.0 License?
- Scrolling issue with Sticky Headers on
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 superslim.