2
다음과 같은 방법을 이해하는 데 어려움이 있습니다. the documentation에서, 방법의 설명은 다음과 같다 :onItemClick의 상위 뷰는 무엇입니까?
public abstract void onItemClick (AdapterView<?> parent, View view, int position, long id)
Parameters:
parent The AdapterView where the click happened.
view The view within the AdapterView that was clicked (this will be a view provided by the adapter)
position The position of the view in the adapter.
id The row id of the item that was clicked.
나는 마지막 두 이해하지만 parent
여기에 무엇을하는지 이해할 수 없었다 왜 view
필요합니까?
누군가 좋은 설명이 있으면 알려주세요.
감사합니다. 부모님을 이해했습니다. 두 번째 사례에 대한 실질적인 예를 작성할 수 있습니까? – xyz
어느 쪽? 보기? –
예보기. – xyz