0
他們有什麼辦法可以通過它調用imageview或java頁面上的任何其他這樣的視圖,而無需分配它的ID?我們可以在不調用其id的情況下調用java頁面中的任何視圖嗎?
他們有什麼辦法可以通過它調用imageview或java頁面上的任何其他這樣的視圖,而無需分配它的ID?我們可以在不調用其id的情況下調用java頁面中的任何視圖嗎?
您可以Tag
分配到View
,如果你想叫它不findViewById(id)
view_row.findViewWithTag(tag)
雖然不建議作爲常用
希望能幫助...
爲什麼你想這樣做嗎? – rahulritesh
'parentView.getChildAt(你查看的索引);' – DroidDev