Java Code Examples for android.widget.AdapterView#INVALID_ROW_ID

The following examples show how to use android.widget.AdapterView#INVALID_ROW_ID . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PlaylistAdapter.java    From android-vlc-remote with GNU General Public License v3.0 5 votes vote down vote up
@Override
public long getItemId(int position) {
    if (position < getCount()) {
        PlaylistItem item = getItem(position);
        return item.getId();
    }
    return AdapterView.INVALID_ROW_ID;
}
 
Example 2
Source File: ContentDecoratorAdapter.java    From android-oauth-client with Apache License 2.0 5 votes vote down vote up
@Override
public long getItemId(int position) {
    if (isItem(position)) {
        return mAdapter.getItemId(position);
    } else {
        return AdapterView.INVALID_ROW_ID;
    }
}
 
Example 3
Source File: FakeSearchAdapter.java    From FakeSearchView with Apache License 2.0 4 votes vote down vote up
@Override public long getItemId(int position) {
  return AdapterView.INVALID_ROW_ID;
}