diff --git a/android/modules/ui/src/java/ti/modules/titanium/ui/TableViewProxy.java b/android/modules/ui/src/java/ti/modules/titanium/ui/TableViewProxy.java index b4478759dc8..65bc33c7acd 100644 --- a/android/modules/ui/src/java/ti/modules/titanium/ui/TableViewProxy.java +++ b/android/modules/ui/src/java/ti/modules/titanium/ui/TableViewProxy.java @@ -414,7 +414,7 @@ public String getApiName() return "Ti.UI.TableView"; } - // NOTE: For internal use only. + @Kroll.getProperty public KrollDict getContentOffset() { final TiTableView tableView = getTableView(); diff --git a/android/modules/ui/src/java/ti/modules/titanium/ui/widget/listview/ListViewProxy.java b/android/modules/ui/src/java/ti/modules/titanium/ui/widget/listview/ListViewProxy.java index db356d99f48..79b5769f8f8 100644 --- a/android/modules/ui/src/java/ti/modules/titanium/ui/widget/listview/ListViewProxy.java +++ b/android/modules/ui/src/java/ti/modules/titanium/ui/widget/listview/ListViewProxy.java @@ -450,7 +450,7 @@ public void setActivity(Activity activity) } } - // NOTE: For internal use only. + @Kroll.getProperty public KrollDict getContentOffset() { final TiListView listView = getListView(); diff --git a/apidoc/Titanium/UI/ListView.yml b/apidoc/Titanium/UI/ListView.yml index 4ad734202b0..5cbb58e0f68 100644 --- a/apidoc/Titanium/UI/ListView.yml +++ b/apidoc/Titanium/UI/ListView.yml @@ -684,6 +684,12 @@ properties: ipad: 3.2.0 platforms: [android, iphone, ipad, macos] + - name: contentOffset + summary: X and Y coordinates to which to reposition the top-left point of the content region. + type: Point + since: {android: "12.4.0"} + platforms: [android] + - name: disableBounce summary: Determines whether the scroll-bounce of the list view should be disabled. description: | diff --git a/apidoc/Titanium/UI/TableView.yml b/apidoc/Titanium/UI/TableView.yml index ccc7eba714c..24103d3a306 100644 --- a/apidoc/Titanium/UI/TableView.yml +++ b/apidoc/Titanium/UI/TableView.yml @@ -1073,6 +1073,12 @@ properties: type: [String, Titanium.UI.Color] default: transparent on non-iOS platforms, white on the iOS platform + - name: contentOffset + summary: X and Y coordinates to which to reposition the top-left point of the content region. + type: Point + since: {android: "12.4.0"} + platforms: [android] + - name: data summary: Rows of the table view. type: [Array, Array]