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

ListView Header is missing on Android #3491

Open
4 of 11 tasks
xperiandri opened this issue Jul 5, 2020 · 3 comments
Open
4 of 11 tasks

ListView Header is missing on Android #3491

xperiandri opened this issue Jul 5, 2020 · 3 comments
Labels
area/listview 📃 Categorizes an issue or PR as relevant to the ListView control difficulty/starter 🚀 Categorizes an issue for which the difficulty level is reachable by newcomers kind/bug Something isn't working project/items 🧾 Categorizes an issue or PR as relevant to items (ItemsControl, ItemsRepeater, ...)

Comments

@xperiandri
Copy link
Contributor

<ListView
    ItemContainerStyle="{StaticResource GroupItemContainerStyle}"
    ItemsSource="{Binding Groups}"
    ScrollViewer.VerticalScrollBarVisibility="Auto"
    SelectionMode="None"
    Style="{StaticResource ListViewStyle}">
    <ListView.ItemTemplateSelector>
        <bmv:HomeGroupItemTemplateSelector
            BooksCollectionTemplate="{StaticResource BooksCollectionTemplate}"
            GroupsCollectionTemplate="{StaticResource GroupsCollectionTemplate}"
            LibrariesCollectionTemplate="{StaticResource LibrariesCollectionTemplate}" />
    </ListView.ItemTemplateSelector>
    <ListView.Header>
        <Border HorizontalAlignment="Stretch" Background="White">
            <Viewbox>
                <Canvas
                    Width="99"
                    Height="57"
                    Margin="10"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Center">
                    <Path
                        Canvas.Left="0"
                        Canvas.Top="16.638"
                        Width="80"
                        Height="41"
                        Data="M 4.395562648773193 -1.370143175125122 L 4.395562648773193 -19.3500862121582 L 12.62484931945801 -19.3500862121582 L 12.62484931945801 -23.23763656616211 L 4.395562648773193 -23.23763656616211 L 4.395562648773193 -37.37053298950195 L 13.94955253601074 -37.37053298950195 L 13.94955253601074 -41.21759033203125 L 0.481630802154541 -41.21759033203125 L 0.481630802154541 -1.370143175125122 L 4.395562648773193 -1.370143175125122 Z M 19.57072448730469 -1.370143175125122 L 19.57072448730469 -19.79555130004883 L 22.09971809387207 -19.93728446960449 L 27.55914306640625 -1.370130300521851 L 31.89457130432129 -1.370130300521851 L 25.29113578796387 -20.46368217468262 C 28.62299346923828 -21.70553398132324 30.2889232635498 -23.93278121948242 30.2889232635498 -27.14541244506836 L 30.2889232635498 -27.14541244506836 L 30.2889232635498 -33.44243621826172 C 30.2889232635498 -38.61233139038086 27.9807014465332 -41.20402908325195 23.36427307128906 -41.2175407409668 L 23.36427307128906 -41.2175407409668 L 15.65676212310791 -41.2175407409668 L 15.65676212310791 -1.370143175125122 L 19.57072448730469 -1.370143175125122 Z M 21.97929191589355 -23.23755836486816 L 19.57072639465332 -23.23755836486816 L 19.57072639465332 -37.37045669555664 L 22.74201202392578 -37.37045669555664 C 25.16396522521973 -37.37045669555664 26.37493515014648 -36.06110000610352 26.37493515014648 -33.44241333007812 L 26.37493515014648 -33.44241333007812 L 26.37493515014648 -27.14538955688477 C 26.37493515014648 -25.33659362792969 25.61223030090332 -24.10823631286621 24.08679389953613 -23.46030426025391 C 23.64521980285645 -23.31182479858398 22.94272994995117 -23.23758506774902 21.97929191589355 -23.23758506774902 Z M 46.46761703491211 -1.370143175125122 L 46.46761703491211 -5.21720027923584 L 36.91364288330078 -5.21720027923584 L 36.91364288330078 -19.3500862121582 L 45.14292907714844 -19.3500862121582 L 45.14292907714844 -23.23763656616211 L 36.91364288330078 -23.23763656616211 L 36.91364288330078 -37.37053298950195 L 46.46764755249023 -37.37053298950195 L 46.46764755249023 -41.21759033203125 L 32.99965286254883 -41.21759033203125 L 32.99965286254883 -1.370143175125122 L 46.46761703491211 -1.370143175125122 Z M 56.38405990600586 -1.370143175125122 C 61.28149032592773 -1.383641839027405 63.73020553588867 -3.968590021133423 63.73020553588867 -9.125003814697266 L 63.73020553588867 -9.125003814697266 L 63.73020553588867 -15.44226837158203 C 63.73020553588867 -17.77750396728516 62.22484588623047 -19.72803115844727 59.21413803100586 -21.29385375976562 C 62.224853515625 -22.85966491699219 63.73020553588867 -24.8101921081543 63.73020553588867 -27.14542579650879 L 63.73020553588867 -27.14542579650879 L 63.73020553588867 -33.44245147705078 C 63.73020553588867 -38.61234283447266 61.41530609130859 -41.20404434204102 56.78550338745117 -41.21754837036133 L 56.78550338745117 -41.21754837036133 L 48.5762825012207 -41.21754837036133 L 48.5762825012207 -1.370143175125122 L 56.38405990600586 -1.370143175125122 Z M 55.4206657409668 -23.2376766204834 L 52.4902458190918 -23.2376766204834 L 52.4902458190918 -37.37057495117188 L 56.1633186340332 -37.37057495117188 C 58.5986442565918 -37.37057495117188 59.81631088256836 -36.06121826171875 59.81631088256836 -33.44253158569336 L 59.81631088256836 -33.44253158569336 L 59.81631088256836 -27.14550590515137 C 59.81631088256836 -25.33671188354492 59.0535888671875 -24.10835456848145 57.52816772460938 -23.46042251586914 C 57.07322311401367 -23.31194114685059 56.3707160949707 -23.23770332336426 55.4206657409668 -23.23770332336426 Z M 56.163330078125 -5.21720027923584 L 52.49013519287109 -5.21720027923584 L 52.49013519287109 -19.3500862121582 L 55.42055130004883 -19.3500862121582 C 56.39736175537109 -19.3500862121582 57.09986877441406 -19.26909828186035 57.52805709838867 -19.10711288452148 C 59.0534782409668 -18.49968719482422 59.81619644165039 -17.278076171875 59.81619644165039 -15.44228076934814 L 59.81619644165039 -15.44228076934814 L 59.81619644165039 -9.125017166137695 C 59.81619644165039 -6.519823551177979 58.59853363037109 -5.217213153839111 56.1632080078125 -5.217213153839111 Z M 73.40582275390625 -0.6817276477813721 C 78.46382141113281 -0.6952261328697205 80.99281311035156 -3.286921262741089 80.99281311035156 -8.456828117370605 L 80.99281311035156 -8.456828117370605 L 80.99281311035156 -34.13089752197266 C 80.99281311035156 -39.30080413818359 78.46381378173828 -41.88575744628906 73.40581512451172 -41.88575744628906 C 68.36119842529297 -41.88575744628906 65.83889007568359 -39.30080413818359 65.83889007568359 -34.13089752197266 L 65.83889007568359 -34.13089752197266 L 65.83889007568359 -8.456827163696289 C 65.83889007568359 -3.27342677116394 68.36119842529297 -0.6817266941070557 73.40581512451172 -0.6817266941070557 Z M 73.40582275390625 -4.569277763366699 C 70.97047424316406 -4.569277763366699 69.75281524658203 -5.865129470825195 69.75281524658203 -8.456828117370605 L 69.75281524658203 -8.456828117370605 L 69.75281524658203 -34.13089752197266 C 69.75281524658203 -36.72259521484375 70.96379852294922 -38.01844787597656 73.38574981689453 -38.01844787597656 L 73.38574981689453 -38.01844787597656 L 73.42588806152344 -38.01844787597656 C 75.86122894287109 -38.00495529174805 77.07888793945312 -36.7091064453125 77.07888793945312 -34.13089752197266 L 77.07888793945312 -34.13089752197266 L 77.07888793945312 -8.456827163696289 C 77.07888793945312 -5.865127086639404 75.85453033447266 -4.569276809692383 73.40582275390625 -4.569276809692383 Z"
                        Fill="#ff000000"
                        Stretch="uniform"
                        Stroke="#ff707070"
                        UseLayoutRounding="False" />
                    <Path
                        Canvas.Left="75.688"
                        Canvas.Top="0"
                        Width="23"
                        Height="17"
                        Data="M 76.17008209228516 -46.19721603393555 L 80.61383056640625 -58.52341461181641 C 80.61383056640625 -58.52341461181641 88.26582336425781 -53.48405456542969 90.17037963867188 -49.67819595336914 C 90.17037963867188 -49.67819595336914 95.46936798095703 -56.13370132446289 99.65937805175781 -55.33711624145508 L 92.67601013183594 -46.0986442565918 L 86.20578002929688 -40.83296585083008"
                        Fill="{StaticResource SystemControlHighlightAccentBrush}"
                        Stretch="uniform"
                        Stroke="#ff707070"
                        UseLayoutRounding="False" />
                </Canvas>
            </Viewbox>
        </Border>
    </ListView.Header>
</ListView>

Current behavior (Android)

Home page  Android

Expected behavior (UWP)

Home page  UWP
Home page scrolled  UWP

How to reproduce it (as minimally and precisely as possible)

I can provide access to a private Azure DevOps repository.

Environment

<PackageReference Include="Uno.Core" Version="2.0.0" />
<PackageReference Include="Uno.UI.Msal" Version="3.0.0-dev.692" />
<PackageReference Include="Uno.Microsoft.Toolkit" Version="6.1.0-build.178.gc768b0f669" />
<PackageReference Include="Uno.Microsoft.Toolkit.Uwp.Connectivity" Version="6.1.0-build.178.gc768b0f669" />
<PackageReference Include="Uno.Microsoft.Toolkit.Uwp.DeveloperTools" Version="6.1.0-build.178.gc768b0f669" />
<PackageReference Include="Uno.Microsoft.Toolkit.Uwp.Notifications" Version="6.1.0-build.178.gc768b0f669" />
<PackageReference Include="Uno.Microsoft.Toolkit.Uwp.Services" Version="6.1.0-build.178.gc768b0f669" />
<PackageReference Include="Uno.Microsoft.Toolkit.Uwp.UI.Animations" Version="6.1.0-build.178.gc768b0f669" />
<PackageReference Include="Uno.Microsoft.Toolkit.Uwp.UI.Controls" Version="6.1.0-build.178.gc768b0f669" />
<PackageReference Include="Uno.Microsoft.Toolkit.Uwp.UI.Media" Version="6.1.0-build.178.gc768b0f669" />

Affected platform(s):

  • iOS (not tested)
  • Android
  • WebAssembly
  • WebAssembly renderers for Xamarin.Forms
  • macOS (not tested)
  • Windows
  • Build tasks
  • Solution Templates

Visual Studio:

  • 2017 (version: )
  • 2019 (version: 16.6)
  • for Mac (version: )
@xperiandri xperiandri added kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification labels Jul 5, 2020
@jeromelaban jeromelaban added area/listview 📃 Categorizes an issue or PR as relevant to the ListView control priority/backlog and removed triage/untriaged Indicates an issue requires triaging or verification labels Jul 6, 2020
@francoistanguay francoistanguay modified the milestone: 3.1 Aug 29, 2020
@agneszitte agneszitte added project/items 🧾 Categorizes an issue or PR as relevant to items (ItemsControl, ItemsRepeater, ...) and removed priority/backlog labels Sep 21, 2020
@jeromelaban jeromelaban added the difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. label Feb 15, 2021
@MartinZikmund MartinZikmund added difficulty/medium 🤔 Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI area/eu and removed difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. labels Jun 1, 2021
@Youssef1313
Copy link
Member

It should be missing on all platforms, since it seems to be depending on ItemsPresenter.Header, which is marked as not implemented.

@davidjohnoliver
Copy link
Contributor

It should be missing on all platforms, since it seems to be depending on ItemsPresenter.Header, which is marked as not implemented.

It's supported on Android and iOS, which use an inner native list for item, header, and footer display. There must be a more specific problem with the reported XAML layout.

(There's an open issue for Header on WASM/Skia/macOS: #1979 )

@xperiandri
Copy link
Contributor Author

I'll try to update the app to Uno 3.10 and check again

@MartinZikmund MartinZikmund changed the title ListView Header is missing on Android ListView Header is missing on Android Jun 14, 2023
@MartinZikmund MartinZikmund added difficulty/starter 🚀 Categorizes an issue for which the difficulty level is reachable by newcomers and removed difficulty/medium 🤔 Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI labels Jun 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/listview 📃 Categorizes an issue or PR as relevant to the ListView control difficulty/starter 🚀 Categorizes an issue for which the difficulty level is reachable by newcomers kind/bug Something isn't working project/items 🧾 Categorizes an issue or PR as relevant to items (ItemsControl, ItemsRepeater, ...)
Projects
None yet
Development

No branches or pull requests

7 participants