原生android的settings模块的样子(我的Settings截图有些改动)
接下来讨论如何在settings中添加一个类似于wlan/ethernet的模块
- 布局文件位置(默认位置在packages/apps/Settings/res/xml/dashboard_categories.xml)
<dashboard-categories
19 xmlns:android="http://schemas.android.com/apk/res/android">
20
21 <!-- WIRELESS and NETWORKS -->
22 <dashboard-category
23 android:id="@+id/wireless_section"
24 android:title="@string/header_category_wireless_networks" >
25
26 <!-- Wifi -->
27 <dashboard-tile
28 android:id="@+id/wifi_settings"
29 android:title="@string/wifi_settings_title"
30 android:fragment=<