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

[Android] IndicatorView with DataTemplate (custom image) does not render correctly when ItemsSource change #24717

Open
wants to merge 19 commits into
base: main
Choose a base branch
from

Conversation

NanthiniMahalingam
Copy link
Contributor

@NanthiniMahalingam NanthiniMahalingam commented Sep 11, 2024

Root Cause

  • When changing itemssource for indicator view, indicator size does not updated based on current items source count.
  • When changing items source count mapping, update indicator view template code section does not include to update the indicator view bounds.

Description of Change

After adding the Update indicator view template in UpdatingIndcatorCount method for mapping the Count property in IndicatorViewHandler android class, indicator view data template does not mess up.

Issues Fixed

Fixes Android 21980

Output:
Android Platform

Before changes:

IndicatorView_BeforeChanges.mp4

After changes:

IndicatorView_AfterChanges.mp4

@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Sep 11, 2024
Copy link
Contributor

Hey there @NanthiniMahalingam! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@NanthiniMahalingam NanthiniMahalingam changed the title [Android & iOS] IndicatorView with DataTemplate (custom image) does not render correctly when ItemsSource change [Android] IndicatorView with DataTemplate (custom image) does not render correctly when ItemsSource change Sep 11, 2024
@NanthiniMahalingam NanthiniMahalingam marked this pull request as ready for review September 11, 2024 14:49
@NanthiniMahalingam NanthiniMahalingam requested a review from a team as a code owner September 11, 2024 14:49
Copy link
Member

@mattleibow mattleibow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just adding a comment about the test and not actually reviewing the code yet.

Comment on lines 21 to 25
"https://xcdn.next.co.uk/Common/Items/Default/Default/ItemImages/AltItemZoom/440022s.jpg",
"https://xcdn.next.co.uk/Common/Items/Default/Default/ItemImages/AltItemZoom/440022s2.jpg",
"https://xcdn.next.co.uk/Common/Items/Default/Default/ItemImages/AltItemZoom/440022s3.jpg",
"https://xcdn.next.co.uk/Common/Items/Default/Default/ItemImages/AltItemZoom/440022s4.jpg",
"https://xcdn.next.co.uk/Common/Items/Default/Default/ItemImages/AltItemZoom/440022s5.jpg"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could these rather be a collection of images in the app, or maybe the dotnet bot multiple times. The network on CI is never reliable enough for testing. No idea why everything else will work but when you need the network for a test it stops working.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will modify the collection of images in the app, or possibly use the dotnet bot image multiple times.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have modified the collection of images in the Issue21980 view model class.

@mattleibow mattleibow added platform/android 🤖 area-controls-collectionview CollectionView, CarouselView, IndicatorView labels Sep 11, 2024
@jfversluis
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView community ✨ Community Contribution platform/android 🤖
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants