Git Product home page Git Product logo

horizontalrecyclerwithdynamicheight's Introduction

horizontalrecyclerwithdynamicheight's People

Contributors

dinkarkumardk avatar

Watchers

 avatar

horizontalrecyclerwithdynamicheight's Issues

The older item that using small view not using highest height

Hai Kumar,

Thank you for sharing the solution, and I've question related to:
You might have the question what if the older views which are already created are smaller and the new view which is going to be treated will be larger due to the large description.

I've read your answer in stackoverflow, and I try to implement the code to my project. But In my case, I want to using the code implementation in the adapter view not only in the description

viewHolder.description.post(new Runnable() { @Override public void run() { currentItemHeight = viewHolder.description.getMeasuredHeight(); if (currentItemHeight > highestHeight) { highestHeight = currentItemHeight; /** this is needed to make sure already inflated view with small description also get resized to largest view till now *and this be called only if the new view is of larger size then all of the view inflated till now */ notifyDataSetChanged(); } viewHolder.description.setHeight(highestHeight); } });

After I implement this runnable, my app keep crash and there is no error log in my logcat as well, this make me confused

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.