René's URL Explorer Experiment


Title: feat(android): allow shared element transition to work with ListView/CollectionView/Pager by farfromrefug · Pull Request #10411 · NativeScript/NativeScript · GitHub

Open Graph Title: feat(android): allow shared element transition to work with ListView/CollectionView/Pager by farfromrefug · Pull Request #10411 · NativeScript/NativeScript

X Title: feat(android): allow shared element transition to work with ListView/CollectionView/Pager by farfromrefug · Pull Request #10411 · NativeScript/NativeScript

Description: In the current implementation it would not work because the collectionview would not have time to realize the cells which you would want to use as shared element. The idea is to defer a bit for : the page to be loaded a timeout giving time to the collectionview to realize its "cells". In most my case the 0 timeout was enough, though for some reason i did not find yet it requires just a bit more with the pager. So what i did is make the timeout a parameter of the PageTransition so that each use case can be handled. A few notes : i left the old commented code for now to be able to compare presenting and presented can not be "compared" anymore. We cant filter on intersection. Though it is not a big deal. Android handles that on its own. i am starting to think it would be best for PageTransition constructor parameters to be an object. Would be less messy, though it would be a breaking change. But as it is quite a new feature, would that be acceptable? in my fork the PageTransition has a onTransitionEnd which revert setTransitionName to null for all presenting views. The reason is that my fork uses add for fragments instead of replace. Thus back navigation fragments are still existing. And if you use the same setTransitionName for multiple pages in deep navigation it would fail/crash. I did not add it here as it is unecessary. Just a note for the future!

Open Graph Description: In the current implementation it would not work because the collectionview would not have time to realize the cells which you would want to use as shared element. The idea is to defer a bit for : ...

X Description: In the current implementation it would not work because the collectionview would not have time to realize the cells which you would want to use as shared element. The idea is to defer a bit for : ...

Opengraph URL: https://github.com/NativeScript/NativeScript/pull/10411

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:a3d75c72-8c4d-f6a8-a0c3-8a3563ed7dd9
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD602:EEDB7:E38CB1:12C499A:6A5BBFB6
html-safe-nonced3b095ceae5c696919b340a34e5a89b7a8254db229af2f9e47d489b9b82ba14c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjAyOkVFREI3OkUzOENCMToxMkM0OTlBOjZBNUJCRkI2IiwidmlzaXRvcl9pZCI6IjQ1MzU1MjMyNzkyNTI0NzE3MzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmace1d023d332cbe8719c9ffe6006f1b7e8d903872089f3b4b0a7cae282fcf491be
hovercard-subject-tagpull_request:1557972459
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/NativeScript/NativeScript/pull/10411/files
twitter:imagehttps://avatars.githubusercontent.com/u/655344?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/655344?s=400&v=4
og:image:altIn the current implementation it would not work because the collectionview would not have time to realize the cells which you would want to use as shared element. The idea is to defer a bit for : ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/NativeScript/NativeScript git https://github.com/NativeScript/NativeScript.git
octolytics-dimension-user_id7392261
octolytics-dimension-user_loginNativeScript
octolytics-dimension-repository_id31492490
octolytics-dimension-repository_nwoNativeScript/NativeScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id31492490
octolytics-dimension-repository_network_root_nwoNativeScript/NativeScript
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9c975978430e9ad293956f2bbdaf153b1bd84a99
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/NativeScript/NativeScript/pull/10411/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2FNativeScript%2Fpull%2F10411%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2FNativeScript%2Fpull%2F10411%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=NativeScript%2FNativeScript
Reloadhttps://github.com/NativeScript/NativeScript/pull/10411/files
Reloadhttps://github.com/NativeScript/NativeScript/pull/10411/files
Reloadhttps://github.com/NativeScript/NativeScript/pull/10411/files
Please reload this pagehttps://github.com/NativeScript/NativeScript/pull/10411/files
NativeScript https://github.com/NativeScript
NativeScripthttps://github.com/NativeScript/NativeScript
Please reload this pagehttps://github.com/NativeScript/NativeScript/pull/10411/files
Notifications https://github.com/login?return_to=%2FNativeScript%2FNativeScript
Fork 1.7k https://github.com/login?return_to=%2FNativeScript%2FNativeScript
Star 25.6k https://github.com/login?return_to=%2FNativeScript%2FNativeScript
Code https://github.com/NativeScript/NativeScript
Issues 771 https://github.com/NativeScript/NativeScript/issues
Pull requests 67 https://github.com/NativeScript/NativeScript/pulls
Discussions https://github.com/NativeScript/NativeScript/discussions
Actions https://github.com/NativeScript/NativeScript/actions
Projects https://github.com/NativeScript/NativeScript/projects
Wiki https://github.com/NativeScript/NativeScript/wiki
Security and quality 0 https://github.com/NativeScript/NativeScript/security
Insights https://github.com/NativeScript/NativeScript/pulse
Code https://github.com/NativeScript/NativeScript
Issues https://github.com/NativeScript/NativeScript/issues
Pull requests https://github.com/NativeScript/NativeScript/pulls
Discussions https://github.com/NativeScript/NativeScript/discussions
Actions https://github.com/NativeScript/NativeScript/actions
Projects https://github.com/NativeScript/NativeScript/projects
Wiki https://github.com/NativeScript/NativeScript/wiki
Security and quality https://github.com/NativeScript/NativeScript/security
Insights https://github.com/NativeScript/NativeScript/pulse
Sign up for GitHub https://github.com/signup?return_to=%2FNativeScript%2FNativeScript%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FNativeScript%2FNativeScript%2Fissues%2Fnew%2Fchoose
NathanWalkerhttps://github.com/NathanWalker
NativeScript:mainhttps://github.com/NativeScript/NativeScript/tree/main
Akylas:transition_collectionviewhttps://github.com/Akylas/NativeScript/tree/transition_collectionview
Conversation 1 https://github.com/NativeScript/NativeScript/pull/10411
Commits 3 https://github.com/NativeScript/NativeScript/pull/10411/commits
Checks 0 https://github.com/NativeScript/NativeScript/pull/10411/checks
Files changed https://github.com/NativeScript/NativeScript/pull/10411/files
Please reload this pagehttps://github.com/NativeScript/NativeScript/pull/10411/files
feat(android): allow shared element transition to work with ListView/CollectionView/Pager https://github.com/NativeScript/NativeScript/pull/10411/files#top
Show all changes 3 commits https://github.com/NativeScript/NativeScript/pull/10411/files
ad3bfc1 fix: shared element transition now working with ListView/CollectionVi… farfromrefug Sep 29, 2023 https://github.com/NativeScript/NativeScript/pull/10411/commits/ad3bfc1b8cfd672de4b6ed6438b75bbaf1af1cf0
00e9c91 fix(android): added construtor parameter to `PageTransition` to allow… farfromrefug Oct 16, 2023 https://github.com/NativeScript/NativeScript/pull/10411/commits/00e9c91f67d81e12c75b70760e655e009d13dc2d
b94cf88 Merge branch 'main' into transition_collectionview NathanWalker Oct 24, 2023 https://github.com/NativeScript/NativeScript/pull/10411/commits/b94cf88f8edc4f296faacd49c9ddcf642ed40178
Clear filters https://github.com/NativeScript/NativeScript/pull/10411/files
Please reload this pagehttps://github.com/NativeScript/NativeScript/pull/10411/files
Please reload this pagehttps://github.com/NativeScript/NativeScript/pull/10411/files
page-transition.android.ts https://github.com/NativeScript/NativeScript/pull/10411/files#diff-b8d0f1a2f61cebd65f19eb6a02409e959992ce5f82d11bc1d44507b3d9f86f65
page-transition.d.ts https://github.com/NativeScript/NativeScript/pull/10411/files#diff-9b9ba4059389544c501cfc65cdb93e40e8eb7803bb61cc37379f9fc79236ceab
packages/core/ui/transition/page-transition.android.tshttps://github.com/NativeScript/NativeScript/pull/10411/files#diff-b8d0f1a2f61cebd65f19eb6a02409e959992ce5f82d11bc1d44507b3d9f86f65
View file https://github.com/Akylas/NativeScript/blob/b94cf88f8edc4f296faacd49c9ddcf642ed40178/packages/core/ui/transition/page-transition.android.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/NativeScript/pull/10411/{{ revealButtonHref }}
https://github.com/NativeScript/NativeScript/pull/10411/files#diff-b8d0f1a2f61cebd65f19eb6a02409e959992ce5f82d11bc1d44507b3d9f86f65
https://github.com/NativeScript/NativeScript/pull/10411/files#diff-b8d0f1a2f61cebd65f19eb6a02409e959992ce5f82d11bc1d44507b3d9f86f65
https://github.com/NativeScript/NativeScript/pull/10411/files#diff-b8d0f1a2f61cebd65f19eb6a02409e959992ce5f82d11bc1d44507b3d9f86f65
https://github.com/NativeScript/NativeScript/pull/10411/files#diff-b8d0f1a2f61cebd65f19eb6a02409e959992ce5f82d11bc1d44507b3d9f86f65
https://github.com/NativeScript/NativeScript/pull/10411/files#diff-b8d0f1a2f61cebd65f19eb6a02409e959992ce5f82d11bc1d44507b3d9f86f65
https://github.com/NativeScript/NativeScript/pull/10411/files#diff-b8d0f1a2f61cebd65f19eb6a02409e959992ce5f82d11bc1d44507b3d9f86f65
https://github.com/NativeScript/NativeScript/pull/10411/files#diff-b8d0f1a2f61cebd65f19eb6a02409e959992ce5f82d11bc1d44507b3d9f86f65
https://github.com/NativeScript/NativeScript/pull/10411/files#diff-b8d0f1a2f61cebd65f19eb6a02409e959992ce5f82d11bc1d44507b3d9f86f65
packages/core/ui/transition/page-transition.d.tshttps://github.com/NativeScript/NativeScript/pull/10411/files#diff-9b9ba4059389544c501cfc65cdb93e40e8eb7803bb61cc37379f9fc79236ceab
View file https://github.com/Akylas/NativeScript/blob/b94cf88f8edc4f296faacd49c9ddcf642ed40178/packages/core/ui/transition/page-transition.d.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/NativeScript/pull/10411/{{ revealButtonHref }}
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.