[英]Identify a view used in multiple activities
I have a spinner that i use over several activities. 我有一个用于多个活动的微调器。 In one of them, I have to modify one of the parameters of the spinner.
在其中之一中,我必须修改微调器的参数之一。 How could i identify from the spinner itself (without passing any extra parameter) the activities where the spinner will be inflated?
我如何从微调框本身识别(不传递任何额外的参数)微调框将膨胀的活动?
Depends a bit on your app - but I see 2 approaches for now: 取决于您的应用程序-但我现在看到2种方法:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.