Skip to content

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

Closed
NanthiniMahalingam wants to merge 19 commits intodotnet:mainfrom
NanthiniMahalingam:issue-21980
Closed

[Android] IndicatorView with DataTemplate (custom image) does not render correctly when ItemsSource change#24717
NanthiniMahalingam wants to merge 19 commits intodotnet:mainfrom
NanthiniMahalingam:issue-21980

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 #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
@dotnet-policy-service
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.

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

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

Copy link
Member

@PureWeen PureWeen left a comment

Choose a reason for hiding this comment

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

I tested with the users sample and PR here

And noticed that with just the fix in this PR that the width of the indicator view stays incorrect

image

where as with the other PR the size seems to update

image

Can you review #24776 and see if those changes makes sense or if you have thoughts on a different approach?

@NanthiniMahalingam
Copy link
Contributor Author

NanthiniMahalingam commented Sep 26, 2024

#24717 (review)

The changes added in the other PR (#24776) is fine.

@PureWeen
Copy link
Member

PureWeen commented Oct 7, 2024

#24717 (review)

The changes added in the other PR (#24776) is fine.

Closing in favor of

#24776

@PureWeen PureWeen closed this Oct 7, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Nov 7, 2024
@sheiksyedm sheiksyedm added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Dec 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-controls-collectionview CollectionView, CarouselView, IndicatorView community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration platform/android

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IndicatorView with DataTemplate (custom image) does not render correctly on ItemsSource change (Android & iOS)

5 participants