android 如何按下RadioButton跳转到另一个页面

日期:2022-04-05 09:30:04 人气:1

android 如何按下RadioButton跳转到另一个页面

1、给RadioButton添加监听事件,setOnClickListener();
2、在onclick()方法里面使用Intent跳转就可以了
Intent
intent
=new
Intent(当前上下文,需要跳转的类.class);
startActivity(intent);
    A+
热门评论