FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(android-bottom-tabs): transition type on programmatic selectedIndex change by ycherniavskyi · Pull Request #6942 · NativeScript/NativeScript · GitHub

fix(android-bottom-tabs): transition type on programmatic selectedIndex change - #6942

Merged
manoldonev merged 2 commits into
NativeScript:masterfrom
ycherniavskyi:adapt-transition-type-on-selectedIndex-set-in-TabView
Feb 22, 2019
Merged

manoldonev merged 2 commits into
NativeScript:masterfrom
ycherniavskyi:adapt-transition-type-on-selectedIndex-set-in-TabView

Conversation

ycherniavskyi commented Feb 20, 2019 •
edited
Loading

Copy link
Copy Markdown
Contributor

What is the current behavior?

Currently on programmatically change selectedIndex property always applied smoothly scroll to the new item (smoothScroll = true), even for TabView with bottom tabs position. Which lead to unnecessary tabs layout render, because if TabView has for example 3 tabs, and from tab3 you programmatically move to tab1 then tab2 also render.

What is the new behavior?

For TabView with bottom tabs position use immediately transition (smoothScroll = false) on programmatically change selectedIndex property.
It makes perfect sense with already disable the swipe navigation and the items preloading functionality.

Difference visualisation (with animated gif)

  • smoothScroll = true
  • smoothScroll = false

ghost added the ♥ community PR label Feb 20, 2019

ns-bot commented Feb 20, 2019

Copy link
Copy Markdown

Please sign CLA at http://www.nativescript.org/cla

ns-bot added the cla: no label Feb 20, 2019

ns-bot commented Feb 20, 2019

Copy link
Copy Markdown

CLA signature found, happy contributing!

ns-bot added cla: yes and removed cla: no labels Feb 20, 2019

Copy link
Copy Markdown
Contributor Author

Unfortunately, it is not clear for me how to implement tests which will test different transition scheme for top and bottom androidTabsPosition property.

ghost assigned manoldonev Feb 22, 2019
ghost added in progress and removed ♥ community PR labels Feb 22, 2019

Copy link
Copy Markdown
Contributor

test

manoldonev removed their assignment Feb 22, 2019
manoldonev changed the title Adapt transition type on selectedIndex set in TabView for Android fix(android-bottom-tabs): transition type on programmatic selectedIndex change Feb 22, 2019
manoldonev merged commit e9dfa20 into NativeScript:master Feb 22, 2019
ghost removed the in progress label Feb 22, 2019

lock Bot commented Mar 10, 2020

Copy link
Copy Markdown

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock Bot locked and limited conversation to collaborators Mar 10, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL