我对 android 开发完全陌生,我目前正在开发我的第一个应用程序(不会出现在市场上)。我正在使用这个应用程序作为学习体验。我没有受过正规教育,因为我还在上高中。我的问题是单击菜单项后,我无法显示文本框。另外,我如何在我的菜单中添加更多项目?谢谢(对不起,我对android开发的无知......)。
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle item selection
switch (item.getItemId()) {
case R.id.action_settings:
actset();
return true;
default:
return super.onOptionsItemSelected(item);
}
}
private void actset() {
// TODO Auto-generated method stub
System.out.println("Developed By Shirwa Mohamed.. ");
}