Eclipse 在ADT中添加背景图像
我真的需要帮助我是ADT/Eclipse的新手,我先将图像放在res/drawable文件夹中,然后将其放在我的应用程序中,如下所示: android:background=@drawable/image 然后我继续将布局更改为scrollview 图像出现在图形布局中,但过了一段时间,ADT向我显示了一个错误,显示: 其中错误位于写入R的位置,例如setContentViewR.layout.activity_main; 读取的错误R无法解析为变量Eclipse 在ADT中添加背景图像,eclipse,adt,Eclipse,Adt,我真的需要帮助我是ADT/Eclipse的新手,我先将图像放在res/drawable文件夹中,然后将其放在我的应用程序中,如下所示: android:background=@drawable/image 然后我继续将布局更改为scrollview 图像出现在图形布局中,但过了一段时间,ADT向我显示了一个错误,显示: 其中错误位于写入R的位置,例如setContentViewR.layout.activity_main; 读取的错误R无法解析为变量 @Override protecte
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
@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;
}
}
如果有人帮忙,我将不胜感激