Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image Gallery - Image Truncation #12

Closed
dylinmaust opened this issue Jul 26, 2016 · 2 comments
Closed

Image Gallery - Image Truncation #12

dylinmaust opened this issue Jul 26, 2016 · 2 comments

Comments

@dylinmaust
Copy link

I'm having trouble creating an image gallery using your library. It works well but there are some cosmetic issues that have been problematic..

On first page load, the "Station List" looks good, but is truncated at 6 items (2 rows of pictures). If I navigate back and reload the same page, the "Station List" is fully loaded, but the ListView background extends far down the page (like 3 or 4 'pages' of black nothingness). I've added a black background so that it's obvious what's happening, but I can't figure out how to correct the issue. It's possible that I'm constructing the template ContentView incorrectly, but I'd like to defer to your expertise.

image

image

Here is the relevant XAML on the page that loads the FlowListView:

<flv:FlowListView HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" BackgroundColor="Black"
                    FlowItemsSource="{Binding Stations}" SeparatorVisibility="None" HasUnevenRows="false" RowHeight="150"
                    FlowItemTappedCommand="{Binding NavigateStationCommand}" FlowAutoColumnCount="true" FlowColumnDefaultMinimumWidth="125">
              <flv:FlowListView.FlowColumnsTemplates>
                <flv:FlowColumnSimpleTemplateSelector ViewType="{x:Type local:StationListView}"/>
              </flv:FlowListView.FlowColumnsTemplates>
            </flv:FlowListView>

And here is the ContentView XAML:

<?xml version="1.0" encoding="utf-8" ?>
<ContentView xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="My.App.StationListView"
             HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand">
  <ContentView.Content>
    <Image Source="{Binding ImageUrl}" Aspect="Fill"></Image>
  </ContentView.Content>
</ContentView>
@dylinmaust
Copy link
Author

Please ignore.. My issue was that I was using the ListView inside a ScrollView.. it caused unwanted side effects. Your library is working perfectly fine. Thanks!

@daniel-luberda
Copy link
Owner

@TimeBomb006 Ok, thanks for the info! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants