Android开发,点击按钮跳转页面时,能跳转,但不显示布局,只有空白

2025年03月22日 09:25
有2个网友回答
网友(1):

public void onCreat(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.one);//载入one.xml
button3=(Button)findViewById(R.id.button3);
button3.setOnClickListener(button3Listener);
}你的这个和
@Override
protected void onCreate(Bundle savedInstanceState)是两个东西

网友(2):

你的one.xml文件有布局吗