简体   繁体   English

我们可以在Java页面中调用任何视图而不调用其ID吗?

[英]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.

相关问题 我们可以在没有 API ID 的情况下调用外部 API 吗? - Can we call external API without API ID? Java:是否可以在不调用对象构造函数的情况下反序列化对象? - Java: Can I deserialize an object without calling its constructor? Java:我们可以重用MBeanServerConnection吗? - Java: Can we reuse MBeanServerConnection without any issue? 如何在不打开接口的情况下从Java调用Alloy? - How can we call Alloy from Java without opening the interface? 如何在不调用其子类的情况下调用方法 - how to call a method without calling its subclass 如果我们在没有实现其接口的情况下找到类调用,则为Java / Android Report提供自定义Lint - Custom Lint for Java / Android Report if we find a class call without implementing its interface 如何在不调用程序包的情况下调用用Java创建的变量? (同班) - How do I call a variable I made in Java without calling the package? (its in the same class) 如何通过给定的ID调用视图 - How to call a view by its given ID 我们可以在没有互联网/没有调用 api 调用 mapbox 的情况下在 Mapbox 地图上获得路线吗? - Can we get Route on Mapbox map without internet/withpout calling api call to mapbox? 我可以在没有任何请求的情况下重定向页面到Java服务器吗? - can I redirect the page without any request to server in java?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM