GithubHelp home page GithubHelp logo

Comments (9)

TonicArtos avatar TonicArtos commented on September 28, 2024

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.

TonicArtos avatar TonicArtos commented on September 28, 2024

One solution is to not use the match_parent value for layout_width for TextViews that are in a view group.

from superslim.

TonicArtos avatar TonicArtos commented on September 28, 2024

Another is to use different viewTypeIds for views intended for different layouts.

from superslim.

TonicArtos avatar TonicArtos commented on September 28, 2024

So far I have been unable to work around the problem from the SuperSLiM end of things. :(

from superslim.

TonicArtos avatar TonicArtos commented on September 28, 2024

Closing for now, people can resurrect this if they want to look into it again.

from superslim.

PatrickDattilio avatar PatrickDattilio commented on September 28, 2024

Maybe leave this open so people can see/contribute, or make a note of it in the docs?

from superslim.

TonicArtos avatar TonicArtos commented on September 28, 2024

I was going to note it in the docs, but sure, I'll leave it open too.

from superslim.

bejibx avatar bejibx commented on September 28, 2024

Maybe report this as an issue to AOSP issue tracker?

from superslim.

TonicArtos avatar TonicArtos commented on September 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.