文件最后提交记录最后更新时间
Issue: #I6DWJY Description: BasicFeature模块,目录结构迁移 Sig: SIG_Sample Feature or Bugfix: Bugfix Binary Source: No Signed-off-by: hongshengquan <hongshengquan3@huawei.com> 3 年前
!2302 【Openharmony_3.2.10.8】【rk3568】【必现】【Demo应用子系统】【Toc】DistributedDataGobang:无法落子+CrossAppDataShare:联系人点击搜索框应用闪退且联系人助手中同步策略无法更改+flipClock:闹钟无法正常删除+首选项在wgr图标无法正常显示 * 翻页时钟、联系人助手、首选项、五子棋 3 年前
Issue: #I6DWJY Description: BasicFeature模块,目录结构迁移 Sig: SIG_Sample Feature or Bugfix: Bugfix Binary Source: No Signed-off-by: hongshengquan <hongshengquan3@huawei.com> 3 年前
!2255 【0230】code目录下代码适配 part.1+2+3 * code目录下代码适配 part.3 * code目录下代码适配 part.2 * code目录下代码适配 part.1 3 年前
!2255 【0230】code目录下代码适配 part.1+2+3 * code目录下代码适配 part.3 * code目录下代码适配 part.2 * code目录下代码适配 part.1 3 年前
!2255 【0230】code目录下代码适配 part.1+2+3 * code目录下代码适配 part.3 * code目录下代码适配 part.2 * code目录下代码适配 part.1 3 年前
description: Add build-profile.json5 ! Sig: SIG_Sample Feature or Bugfix: Bugfix Binary Source: No Signed-off-by: taobohao <taobohao@huawei.com> 3 年前
!2258 【0230】code目录下代码适配 * code目录下代码适配 part.4 3 年前
!2255 【0230】code目录下代码适配 part.1+2+3 * code目录下代码适配 part.3 * code目录下代码适配 part.2 * code目录下代码适配 part.1 3 年前
README.md

Preferences

Introduction

This sample shows how to alternate between themes using preferences. The display effect is as follows:

Concepts

Preferences: provide capabilities for processing data in the form of key-value (KV) pairs and support lightweight data persistence, modification, and query. In KV pairs, the keys are of the string type, and the values can be of the number, string, Boolean, Array<number>, Array<string>, or Array<boolean> type.

Required Permissions

N/A.

Usage

  1. Touch the switch button on the upper right corner of the title bar, and select the target theme from the screen displayed.

  2. Exit the app and then access it again. The theme before the last exit is displayed.

Constraints

  • This sample can only be run on standard-system devices.

  • This sample is based on the stage model, which is supported from API version 9.

  • This sample requires DevEco Studio 3.1 Canary1 (Build Version: 3.1.0.100) to compile and run.