Skip to content

Commit 58f9957

Browse files
authored
Update README.md
1 parent 7295fec commit 58f9957

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Most developers should be using `RecyclerView` instead of `ListView` and should
5555
It is simple to create your own `ViewGroup` backed by a `RecyclerView.Adapter`. See the `AdapterFlowLayout` library and `AdapterLayoutDelegate` in the library for an example of how to create one.
5656

5757
# Limitations
58-
- Within a `RecyclerView.Adapter`, you can call `getAdapterPosition()`. This will always return -1 since there is actually never an associated RecyclerView.
58+
- Within a `RecyclerView.Adapter`, you can call `getAdapterPosition()`. This will always return -1 since there is actually never an associated RecyclerView. Instead, you can call `AdapterLayout.getAdapterPosition(holder)` to get the position of the `ViewHolder` within the adapter.
5959

6060
License
6161
--------

0 commit comments

Comments
 (0)