自 2025 年 3 月 27 日起,我們建議您使用 android-latest-release
而非 aosp-main
建構及貢獻 AOSP。詳情請參閱「Android 開放原始碼計畫變更」。
Android 設定選單
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
本節說明可用於實作及自訂 Android 設定選單的選項。
設定主畫面
在 Android 7.0 以上版本中,「設定」主畫面已強化,提供建議設定和可自訂的狀態通知。這項功能會自動實作,裝置實作者可以進行設定。
這些增強功能的原始碼位於下列檔案中:
Android 設定設計指南
本文件旨在為設計 Android 平台設定的人員,或為 Android 應用程式設計設定的開發人員,提供相關原則和規範。
模式和元件
在 Android 8.0 中,「設定」選單新增了幾個涵蓋常見用途的元件和小工具。我們建議裝置製造商和開發人員在擴充「設定」應用程式時使用常見元件,以便新的使用者介面與現有的「設定」UI 保持一致。
Android 8.0 為「設定」應用程式推出了新的資訊架構,簡化設定的整理方式,讓使用者更輕鬆地快速找到設定,自訂 Android 裝置。Android 9 推出了一些改善功能,提供更多設定功能,並簡化實作程序。
個人化設定
Android 設定應用程式會在 Android 8.0 中為使用者提供建議清單。這些建議通常會宣傳手機的功能,而且可自訂 (例如 「設定零打擾時間表」或「開啟 Wi-Fi 通話」)。
綜合搜尋
Android 8.0 為「設定」選單新增了擴充搜尋功能。本文將說明如何新增設定,並確保設定搜尋功能可正確編入索引。
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-07-27 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-27 (世界標準時間)。"],[],[],null,["# Android settings menu\n\nThis section describes the options available to you for implementing and\ncustomizing the Android settings menu.\n\nSettings home screen\n--------------------\n\nIn Android 7.0 and higher, the Settings home page is enhanced with suggested\nsettings and customizable status notifications. The feature is implemented\nautomatically, and device implementers can configure it.\n\nThe source code for these enhancements is in these files:\n\n- [SuggestionParser.java](https://android.googlesource.com/platform/packages/apps/SettingsIntelligence/+/refs/heads/android16-release/src/com/android/settings/intelligence/suggestions/SuggestionParser.java)\n- [TileUtils.java](https://android.googlesource.com/platform/frameworks/base/+/fcad09a/packages/SettingsLib/src/com/android/settingslib/drawer/TileUtils.java)\n\nAndroid settings design guidelines\n----------------------------------\n\nThis documentation highlights the principles and guidelines for anyone who is\neither designing Android platform settings or any developers designing\nsettings for their Android app.\n\nPatterns and components\n-----------------------\n\nIn Android 8.0, the Settings menu gained several components and widgets that\ncover common uses. Device manufacturers and developers are encouraged to use the\ncommon components when extending the Settings app so new user interfaces stay\nconsistent with the existing Settings UI.\n\nInformation architecture\n------------------------\n\nAndroid 8.0 introduced a new information architecture for the Settings app to\nsimplify the way settings are organized and make it easier for users to quickly\nfind settings to customize their Android devices. Android 9 introduced some\nimprovements to provide more Settings functionality and easier implementation.\n\nPersonalized settings\n---------------------\n\nThe Android Settings app provides a list of suggestions to the users in Android\n8.0. These suggestions typically promote features of the phone, and they are\ncustomizable (e.g., \"Set Do Not Disturb schedule\" or \"Turn on Wi-Fi Calling\").\n\nUniversal search\n----------------\n\nAndroid 8.0 adds expanded search capabilities for the Settings menu. This\ndocument describes how to add a setting and ensure it is properly indexed for\nSettings search."]]