光标在getItemId时,F3跳到的是如下源码,源码的体去哪了?
/**
* Return the identifier for this menu item. The identifier can not
* be changed after the menu is created.
*
* @return The menu item's identifier.
*/
public int getItemId();@Override
public boolean onOptionsItemSelected(MenuItem item)
{
super.onOptionsItemSelected(item);
switch (item.getItemId())
{
case MENU_ABOUT:
openOptionsDialog();
break;
case MENU_Quit:
finish();
break;
}
return true;
}
/**
* Return the identifier for this menu item. The identifier can not
* be changed after the menu is created.
*
* @return The menu item's identifier.
*/
public int getItemId();@Override
public boolean onOptionsItemSelected(MenuItem item)
{
super.onOptionsItemSelected(item);
switch (item.getItemId())
{
case MENU_ABOUT:
openOptionsDialog();
break;
case MENU_Quit:
finish();
break;
}
return true;
}
google-android-sdk\platforms\android-8\sources
google-android-sdk\platforms\android-8\sources
源码当然早有的,99.99%函数也是能F3找到源码的。只是这个有点特别!不明白为何,所以相问。源码是有的。finish()这句按F3,源码都是OK的。getItemId按F3已经跳到源码了,只有仅仅一个声名外壳。
按 F3 能定位到源码说明 你已经在sourses文件下放了源码,要不然找不到的 getItemId 没源码 是不是你的源码的版本不一致呢