-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
impr(android): Use RecyclerView for ListView and TableView #12029
Conversation
|
Hi Gary! Let me know if I can help with sample code. We have 36+ complex list views in all kinds (system- and custom-templates) that I could share with you via repo. |
@garymathews Does this supersede #11556 ? |
ccccf47
to
8a9c976
Compare
android/modules/ui/src/java/ti/modules/titanium/ui/widget/listview/ListItemProxy.java
Outdated
Show resolved
Hide resolved
52b43ea
to
b3a0d38
Compare
android/modules/ui/src/java/ti/modules/titanium/ui/widget/tableview/TiTableView.java
Outdated
Show resolved
Hide resolved
7cc6611
to
303f656
Compare
0d804b1
to
d5852a0
Compare
@ssekhri Updated PR also included test cases for search functionality in PR test case. |
6a165f5
to
9b1efe7
Compare
This comment has been minimized.
This comment has been minimized.
7807fd8
to
1b2a19d
Compare
f867420
to
80a398a
Compare
The changes look good. Tests for listview and tableview ran fine. |
Looks good to me as well. We can merge it. |
The backport to
Check the run for full details # Fetch latest updates from GitHub
git fetch
# Check out the target branch
git checkout 9_3_X
# Make sure it's up to date
git pull
# Check out your branch
git checkout -b backport-12029-to-9_3_X
# Apply the commits from the PR
curl -s https://github.com/appcelerator/titanium_mobile/commit/a31fe83815c71d89aca48e74d110dc8f72908388.patch | git am -3 --ignore-whitespace
curl -s https://github.com/appcelerator/titanium_mobile/commit/52e919ead515b8bdeb546117b6fea23c41731c53.patch | git am -3 --ignore-whitespace
curl -s https://github.com/appcelerator/titanium_mobile/commit/2cccc2fa41983d3704f1217377a7450da3248724.patch | git am -3 --ignore-whitespace
curl -s https://github.com/appcelerator/titanium_mobile/commit/de6ee316abb6893e82e5eac3d8a1edbfc2440aaa.patch | git am -3 --ignore-whitespace
curl -s https://github.com/appcelerator/titanium_mobile/commit/52989953c7ded3983139db1c3480a203ff76a106.patch | git am -3 --ignore-whitespace
curl -s https://github.com/appcelerator/titanium_mobile/commit/44cf3d1545f52a0d2e907fba7560277429281ea6.patch | git am -3 --ignore-whitespace
curl -s https://github.com/appcelerator/titanium_mobile/commit/84c6621b85a5a77b7ed1829ad35c6e9c26f7973a.patch | git am -3 --ignore-whitespace
curl -s https://github.com/appcelerator/titanium_mobile/commit/dbb74dd3dde114a2552dac4bf61b71da88b0cc1a.patch | git am -3 --ignore-whitespace
curl -s https://github.com/appcelerator/titanium_mobile/commit/31e8d82149405b9eb079a793c11fcaee53be5453.patch | git am -3 --ignore-whitespace
curl -s https://github.com/appcelerator/titanium_mobile/commit/9a6b40ce142577f6ea9992ecd3297bc94936419e.patch | git am -3 --ignore-whitespace
curl -s https://github.com/appcelerator/titanium_mobile/commit/5f1c04d6a2deb3783884b28406e15daad53d3889.patch | git am -3 --ignore-whitespace
curl -s https://github.com/appcelerator/titanium_mobile/commit/9b1efe7f836a33aededa25696cffb6489fb78924.patch | git am -3 --ignore-whitespace
curl -s https://github.com/appcelerator/titanium_mobile/commit/1b2a19d69edb0732a126396b252e41cab1a8f1b4.patch | git am -3 --ignore-whitespace
curl -s https://github.com/appcelerator/titanium_mobile/commit/5069965e5be35362431cbcc068faf001df475de5.patch | git am -3 --ignore-whitespace
curl -s https://github.com/appcelerator/titanium_mobile/commit/a0f312573473d51f9d6640efb31c0d2f04021586.patch | git am -3 --ignore-whitespace
curl -s https://github.com/appcelerator/titanium_mobile/commit/9743ddd0f217ecc61bd34ee4e826e95b97c1ff83.patch | git am -3 --ignore-whitespace
curl -s https://github.com/appcelerator/titanium_mobile/commit/80a398ab13041ffcf87c0f6a15b1f06ba28de33c.patch | git am -3 --ignore-whitespace
# Push it to GitHub
git push --set-upstream origin backport-12029-to-9_3_X Then, create a pull request where the |
The backport to
Check the run for full details # Fetch latest updates from GitHub
git fetch
# Check out the target branch
git checkout 9_3_X
# Make sure it's up to date
git pull
# Check out your branch
git checkout -b backport-12029-to-9_3_X
# Apply the commits from the PR
curl -s https://github.com/appcelerator/titanium_mobile/commit/a31fe83815c71d89aca48e74d110dc8f72908388.patch | git am -3 --ignore-whitespace
curl -s https://github.com/appcelerator/titanium_mobile/commit/52e919ead515b8bdeb546117b6fea23c41731c53.patch | git am -3 --ignore-whitespace
curl -s https://github.com/appcelerator/titanium_mobile/commit/2cccc2fa41983d3704f1217377a7450da3248724.patch | git am -3 --ignore-whitespace
curl -s https://github.com/appcelerator/titanium_mobile/commit/de6ee316abb6893e82e5eac3d8a1edbfc2440aaa.patch | git am -3 --ignore-whitespace
curl -s https://github.com/appcelerator/titanium_mobile/commit/52989953c7ded3983139db1c3480a203ff76a106.patch | git am -3 --ignore-whitespace
curl -s https://github.com/appcelerator/titanium_mobile/commit/44cf3d1545f52a0d2e907fba7560277429281ea6.patch | git am -3 --ignore-whitespace
curl -s https://github.com/appcelerator/titanium_mobile/commit/84c6621b85a5a77b7ed1829ad35c6e9c26f7973a.patch | git am -3 --ignore-whitespace
curl -s https://github.com/appcelerator/titanium_mobile/commit/dbb74dd3dde114a2552dac4bf61b71da88b0cc1a.patch | git am -3 --ignore-whitespace
curl -s https://github.com/appcelerator/titanium_mobile/commit/31e8d82149405b9eb079a793c11fcaee53be5453.patch | git am -3 --ignore-whitespace
curl -s https://github.com/appcelerator/titanium_mobile/commit/9a6b40ce142577f6ea9992ecd3297bc94936419e.patch | git am -3 --ignore-whitespace
curl -s https://github.com/appcelerator/titanium_mobile/commit/5f1c04d6a2deb3783884b28406e15daad53d3889.patch | git am -3 --ignore-whitespace
curl -s https://github.com/appcelerator/titanium_mobile/commit/9b1efe7f836a33aededa25696cffb6489fb78924.patch | git am -3 --ignore-whitespace
curl -s https://github.com/appcelerator/titanium_mobile/commit/1b2a19d69edb0732a126396b252e41cab1a8f1b4.patch | git am -3 --ignore-whitespace
curl -s https://github.com/appcelerator/titanium_mobile/commit/5069965e5be35362431cbcc068faf001df475de5.patch | git am -3 --ignore-whitespace
curl -s https://github.com/appcelerator/titanium_mobile/commit/a0f312573473d51f9d6640efb31c0d2f04021586.patch | git am -3 --ignore-whitespace
curl -s https://github.com/appcelerator/titanium_mobile/commit/9743ddd0f217ecc61bd34ee4e826e95b97c1ff83.patch | git am -3 --ignore-whitespace
curl -s https://github.com/appcelerator/titanium_mobile/commit/80a398ab13041ffcf87c0f6a15b1f06ba28de33c.patch | git am -3 --ignore-whitespace
# Push it to GitHub
git push --set-upstream origin backport-12029-to-9_3_X Then, create a pull request where the |
The backport to |
Quick feedback after more testing: The overall app is still very stable and this PR handles all of our list- and table-view scenarios properly. The only "glitch" we noticed is that the selection / ripple is very light on dark mode. It's |
And this one is a regression we cannot workaround: https://jira.appcelerator.org/browse/AC-6644 |
Ti.UI.ListView
to useRecyclerView
Ti.UI.TableView
to useRecyclerView
TEST CASES
Updated 03/12/21 to include more test cases.
SHOW
TIMOB-27077
TIMOB-28088