android - How to know what view is in the same context than other -
i have class have list 3 webview different activities
public class class { private list<webview> webviews; . . . public void bindonclickevent(actionmethod amethod, view control){ control.setonclicklistener(new onclicklistener() { @override public void onclick(view v) { //here need know webview in webviews in same context view control //webview.loadurl("javascript:myjsfunction(\'"+s+"\');"); } }); } } i need use inside of method onclick(view v) webview (that can found in list "webviews") in same context parameter view v.
any idea?
thanks!
view has method getcontext(). should able compare contexts determine views belong activitys.
Comments
Post a Comment