GithubHelp home page GithubHelp logo

Comments (5)

georgejecook avatar georgejecook commented on May 29, 2024

Yes it works perfectly on android. Not on iOS though. Please pester xamarin to improve the Api.

from twintechsformslib.

thaihung203 avatar thaihung203 commented on May 29, 2024

Sure I will,
I never do iOS before (so maybe it's a stupid question) but should we rewrite the ListView renderer instead using the default to overcome this ?

from twintechsformslib.

georgejecook avatar georgejecook commented on May 29, 2024

Please refer to my previous comment. If you ask in the forums lots of people will help you. If you ask here you will not get assistance. That's not what the issue tracker is for.

from twintechsformslib.

thaihung203 avatar thaihung203 commented on May 29, 2024

Hi,
I found why the UnEvenRowHeight isn't rendered correctly. The problem is when we using cache, the SetupCell will not be called for every OnBindingContextChanged. One another fix is using
this.Height = mediaItem.RowHeight;
instead of
View.HeightRequest = mediaItem.RowHeight
so in your UnevenFastCell.xaml.cs example, I just put a dummy OnBindingContextChanged like follow

            protected override void OnBindingContextChanged ()
    {
        base.OnBindingContextChanged ();
        var mediaItem = BindingContext as UnevenSizedMediaItem;
        this.Height = mediaItem.RowHeight;
    }

then it works like a charm:)

Hope that help.

from twintechsformslib.

georgejecook avatar georgejecook commented on May 29, 2024

That helps a lot. I looked at their code and misread that you can set the cell height directly!

Not sure why setup cell wasn't called though. Perhaps because of the change to not cache so heavily.

It looks like setup cell Methodist not even be required.

Really appreciate your efforts with this. If you follow the checking you know I'm busy with gestures right now so not had time to look at cells.

Good work. Glad it paid off for you :)

Sent from my iPhone

On 2 Aug 2015, at 05:58, thaihung203 [email protected] wrote:

Hi,
I found why the UnEvenRowHeight isn't rendered correctly. The problem is when we using cache, the SetupCell will not be called for every OnBindingContextChanged. One another fix is using
this.Height = mediaItem.RowHeight;
instead of

View.HeightRequest = mediaItem.RowHeight
so in your UnevenFastCell.xaml.cs example, I just put a dummy OnBindingContextChanged like follow

        protected override void OnBindingContextChanged ()
{
    base.OnBindingContextChanged ();
    var mediaItem = BindingContext as UnevenSizedMediaItem;
    this.Height = mediaItem.RowHeight;
}

then it works like a charm:)

Hope that help.


Reply to this email directly or view it on GitHub.

from twintechsformslib.

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.