0 android android-layout android-button
我正在"尝试"制作一个Android应用程序.我试图让它成为当我点击一个按钮它将带我到另一个布局.我已经完成了其他所有事情,我很确定......除了这个之外还有0个错误.无法访问的代码.
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
Button bUtuube = (Button) findViewById(R.id.Utuube);
bUtuube.setOnClickListener(new View.OnClickListener() {
Run Code Online (Sandbox Code Playgroud)
我收到了无法访问的代码错误Button bUtuube = (Button) findViewById(R.id.Utuube).那是红线出现的地方.
干杯
| 归档时间: |
|
| 查看次数: |
2768 次 |
| 最近记录: |