button1.setOnLongClickListener(new View.OnLongClickListener() {
@Override
public boolean onLongClick(View v) {
return false;
}
});*/
反射获取button1,反射获取setOnLongClickListener的method,根据View.OnLongClickListener()的接口类型实例化动态代理,然后动态代理执行自身的方法。
标签:setOnLongClickListener,OnLongClickListener,代理,button1,动态,View From: https://www.cnblogs.com/wuxero/p/16981726.html