ListView image conflict when width and height is set
See original GitHub issueI’m using NativeScript with Angular. I have a list view that is rendering some json data. When I set the width
and height
property to my Image
tag, it make some problem. Then when I scroll down, first it loads previous images, and then changes to the real images. (Without width and height, it works perfect, and when I scroll, first it’s blank, the the real images get loaded.)
Here is my code:
<ListView [items]="europianCountries" class="list-group">
<ng-template let-country="item" let-i="index" let-odd="odd" let-even="even">
<GridLayout class="list-group-item">
<ListView.itemTemplate>
<Image width="100" height="100" stretch="aspectFill" id="item" (tap)="onItemTap($event)" (pinch)="onPinch($event)" [src]="'http://luxa.club/'+country.post_picture_time"></Image>
</ListView.itemTemplate>
</GridLayout>
</ng-template>
</ListView>
Any idea?
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Xamarin resize Listview item-height based on viewcell width
Actually what I want is that RowDefinition Height="ColumnDefinition Width="15*"", so the both resize linear based on the parameter set as width.
Read more >SingleChildScrollView class - widgets - Flutter - Dart API docs
A box in which a single widget can be scrolled. This widget is useful when you have a single box that will normally...
Read more >How to display images with different sizes with keeping their ...
TileSize = new Size(width, height); sets a given size for all images in listview, how can i do this separately for each of...
Read more >Class CQ.Ext.list.ListView - Adobe Developer
Ext.Panel({ id:'images-view', width:425, height:250, collapsible:true, ... The maximum value in pixels which this BoxComponent will set its height to.
Read more >Titanium.UI.ListView
ListView.templates property, then use the style name to set the Titanium. ... properties: { // Sets the image view properties width: '50dp', height:...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@tsonevn Also for my own issue, I changed my view and now it works fine:
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.