The Last Element In The Row BrowseFragment
I have a Fragment: public class FilmFragment extends BrowseFragment implements LoaderManager.LoaderCallbacks
Solution 1:
You can get all the information you need out of the Row row
, Object item
, and the ArrayObjectAdapter
on the Row
that are handed back in the onItemSelected(...)
event.
Something like:
final ListRow listRow = (ListRow) row;
final ArrayObjectAdapter currentRowAdapter = listRow.getAdapter();
int selectedIndex = currentRowAdapter.indexOf(item);
if (selectedIndex != -1 && (currentRowAdapter.size() - 1) == selectedIndex ) {
// The last item was selected
}
Post a Comment for "The Last Element In The Row BrowseFragment"