android 另个类里的事件监听为什么没反应,怎么修改 5
privateReturnActivitycontext;@OverrideprotectedvoidonCreate(BundlesavedInstanceState)...
private ReturnActivity context;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
abc(new ReturnActivity());
}
private void abc(ReturnActivity context) {
this.context=context;
} 展开
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
abc(new ReturnActivity());
}
private void abc(ReturnActivity context) {
this.context=context;
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询