[TIMOB-28088] Android: Rewrite Ti.UI.ListView to use RecyclerView
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | Medium |
Status | Closed |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | Release 9.3.0 |
Components | Android |
Labels | ListView, android |
Reporter | Joshua Quick |
Assignee | Gary Mathews |
Created | 2020-08-19T00:00:34.000+0000 |
Updated | 2020-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.
No comments