Android 7.0 範例
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
請使用下列程式碼範例,瞭解 Android 7.0 的功能和 API。如要下載 Android Studio 中的範例,請選取「File」>「New」>「Import Samples」選單選項。
注意:這些可下載的專案專為搭配 Gradle 和 Android Studio 使用而設計。
多視窗模式遊樂場
這個範例示範如何在應用程式中使用多個視窗使用者介面。
前往 GitHub 取得
直接啟動
這個範例示範如何在裝置加密儲存空間中儲存及存取資料,這個儲存空間會在裝置啟動時隨時可用。
前往 GitHub 取得
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。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 7.0 Samples\n\nUse the code samples below to learn about Android 7.0 capabilities and APIs. To\ndownload the samples in Android Studio, select the **File \\\u003e New \\\u003e Import\nSamples** menu option.\n\n\n**Note:** These downloadable projects are designed\nfor use with Gradle and Android Studio.\n\n### Multi-Window Playground\n\n\nThis sample demonstrates how to take advantage of multiple window\nuser interfaces with your app.\n\n\n[Get it on GitHub](https://github.com/android/views-widgets-samples/tree/main/MultiWindowPlayground) \n\n### Direct Boot\n\n\nThis sample demonstrates how to store and access data in a device encrypted\nstorage which is always available while the device is booted.\n\n\n[Get it on GitHub](https://github.com/android/security-samples/tree/main/DirectBoot)"]]