You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16
Original file line number
Diff line number
Diff line change
@@ -312,6 +312,22 @@ If you want to have a seperator between the data rows you can do so by specifyin
312
312
```
313
313
As for the `ListView` you can specify `divider` as a drawable and `dividerHeight` as the vertical size of the divider.
314
314
315
+
### Swipe to Refresh
316
+
The TableView has a build in SwipeToRefresh action. By default this is disabled, but you can easily enable it using the follwing line.
317
+
```java
318
+
tableView.setSwipeToRefreshEnabled( true );
319
+
```
320
+
This enables the user to trigger the table refresh on a single swipe. To listen for this user interaction you have to set an `SwipeToRefreshListener` to your tableview.
The callback method has the `RefreshIndicator` that is shown to the user passed as parameter. So if you finished your refresh action simply call `RefreshIndicator.hide()`.
330
+
315
331
### State Persistence
316
332
The TableView as well as the SortableTableView will persist its state automatically (e.g. on orientation change). If you want to disable this behaviour you can do so using the following code snipped.
0 commit comments