一:Settings一级菜单
1、AndroidManifest.xml
每个APP对应都有一个AndroidManifest.xml,从该文件入手分析最为合适。
packages/apps/Settings/AndroidManifest.xml
根据<category android:name="android.intent.category.LAUNCHER" />可找到当前当前APP activity所属的类,比如当前Settings为Settings.java:
Activity活动示例:用于显示一级菜单和跳转二级菜单fragment
2、Setting/SubSettings类
Settings类和其子类SubSettings都继承SettingsActivity类
packages/apps/Settings/src/com/android/settings/Settings.java
/**
* Top-level Set