リストビューにロング クリック リスナーを設定しています。クリックされた項目のインデックスを使用して、対応するオブジェクトを取得したいと考えています。
Android ドキュメントに従ったメソッド シグネチャとパラメータ定義
public abstract boolean onItemLongClick (AdapterView<?> parent, View view, int position, long id)
Parameters
parent The AbsListView where the click happened
view The view within the AbsListView that was clicked
position The position of the view in the list
id The row id of the item that was clicked
私の質問は、「位置」と「ID」は常に同じですか? これらの定義は互換性があるように見えますが、違いは何ですか?