Comments (5)
Yes it works perfectly on android. Not on iOS though. Please pester xamarin to improve the Api.
from twintechsformslib.
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.
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.
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.
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 ofView.HeightRequest = mediaItem.RowHeight
so in your UnevenFastCell.xaml.cs example, I just put a dummy OnBindingContextChanged like followprotected 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)
- Xamarin.Forms 2.0.1.6495 - GetRendererDelegate issues HOT 1
- Page inside page is not working on iOS HOT 2
- FastCell with SwipeGesture not working
- How to scale SVGs without preserving the aspect ratio HOT 4
- Layer exceeds max. dimensions supported by the GPU in TwinTech scroll view on Android Marshmallow HOT 1
- PageViewContainer Carousel not working on iOS but working on Android HOT 4
- SVG Image does not support HorizontalOptions? (Android) HOT 3
- Getting "System.NotSupportedException: Path Operation c" when trying to load a SVG HOT 5
- ListView or Grid not appearing when ContentPage inside PageViewContainer
- Is this support UWP? HOT 1
- Grid No work in ScrollView
- LongPress is not working
- Issue with TwinTechForms.SvgImage.Droid; errors in Resource.Designer.cs HOT 1
- Svg stroke-linecap and stroke-linejoin support. HOT 2
- Android.Views.GestureDetector - System.ObjectDisposedException: Cannot access a disposed object.
- PageViewContainer crash under ios 10.2 HOT 4
- SvgImage Exception when setting SvgPath Property late
- Gesture code HOT 1
- XXHDPI Support for pan gestures
- demo code not working svg with multiple path elements
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 twintechsformslib.