[英]Can we call any view in java page without calling its id?
他们是否可以通过任何方式在Java页面上调用imageview或任何其他此类视图而无需分配其ID?
You can have Tag
Assigned to the View
if you want to call it without findViewById(id)
你可以有Tag
分配到View
,如果你想叫它不findViewById(id)
view_row.findViewWithTag(tag)
Although it is Not Recommended as Usual 虽然不推荐使用
Hope this could help... 希望这可以帮助...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.