Skip to content

feat(android): move ScrollableView to ViewPager2#14396

Merged
hansemannn merged 13 commits into
mainfrom
androidViewPager2
Mar 15, 2026
Merged

feat(android): move ScrollableView to ViewPager2#14396
hansemannn merged 13 commits into
mainfrom
androidViewPager2

Conversation

@m1ga

@m1ga m1ga commented Feb 23, 2026

Copy link
Copy Markdown
Contributor

fixes: #13690

the TabGroup stlil uses the ViewPager1 so I've kept it in the build.gradle file for now as this will only move the ScrollableView to ViewPager2. ViewPager2 supports RTL layouts or vertical orientation.

New feature:

  • scrollType with vertical (default is horizontal). Same as the ScrollView

Tested:

  • internal Ti.UI.ScrollableView tests
  • kitchensink
  • padding example from the docs
  • scrollingEnabled true and false

Test:
use the KitchenSink App: Views - ScrollableView and with tidev/kitchensink-v2#75 for scrollType: "vertical"

Note:
🤖 AI generated! Have to do some more testing, but my first test in a real app looked fine already 👍

Bildschirmaufnahme_20260223_220124.webm

@socket-security

socket-security Bot commented Feb 23, 2026

Copy link
Copy Markdown

No dependency changes detected. Learn more about Socket for GitHub.

👍 No dependency changes detected in pull request

Comment thread apidoc/Titanium/UI/ScrollableView.yml Outdated
@m1ga m1ga mentioned this pull request Mar 14, 2026
Comment thread .github/workflows/docs.yml Outdated
Comment thread .github/workflows/regen-docs.yml Outdated
Comment thread android/titanium/build.gradle
@hansemannn

Copy link
Copy Markdown
Collaborator

PR looks and works good - lete know when it's ready for review

@m1ga

m1ga commented Mar 15, 2026

Copy link
Copy Markdown
Contributor Author

Thanks. Will run some last tests and then we should be good to go 👍

@m1ga
m1ga marked this pull request as ready for review March 15, 2026 13:39
@m1ga

m1ga commented Mar 15, 2026

Copy link
Copy Markdown
Contributor Author

Tested it with two different client apps where I didn't write the initial code and both behave the same way with the ViewPager2. And since all other tests worked fine too we should be good to go here 👍

@hansemannn
hansemannn merged commit 8f2359b into main Mar 15, 2026
9 checks passed
@hansemannn
hansemannn deleted the androidViewPager2 branch March 15, 2026 14:38
cb1kenobi pushed a commit that referenced this pull request Mar 18, 2026
* feat(android): move to ViewPager2

* scrollType

* fix package-lock

* revert package-lock

* update workflows

* Apply suggestion from @m1ga

* fix disable scrolling

* fix clipping

* apply padding to correct view
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Android: migrate ViewPager to ViewPager2

2 participants