Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28088] Android: Rewrite Ti.UI.ListView to use RecyclerView

GitHub Issuen/a
TypeImprovement
PriorityMedium
StatusClosed
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sRelease 9.3.0
ComponentsAndroid
LabelsListView, android
ReporterJoshua Quick
AssigneeGary Mathews
Created2020-08-19T00:00:34.000+0000
Updated2020-11-20T00:24:49.000+0000

Description

*Summary:* Titanium's [Ti.UI.ListView](https://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.ListView) is currently implemented on Android via the Java [ListView](https://developer.android.com/reference/android/widget/ListView) class. We should re-implement Titanium's ListView to use Android's [RecyclerView](https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.html) instead. *Reason:* Google's RecyclerView offers the following features we would like to add for parity with iOS: * "Swipe Actions" for rows. * Drag-and-drop rows. The above can be done via Google's [ItemTouchHelper](https://developer.android.com/reference/android/support/v7/widget/helper/ItemTouchHelper) Java class in combination with their RecyclerView. *Note 1:* In Android Studio's UI designer, Google's ListView is listed under the "Legacy" widgets tab. Google isn't deprecating ListView, but they're clearly favoring RecyclerView over it.

Comments

No comments

JSON Source