diff --git a/AdaptiveCapabilities/README.md b/AdaptiveCapabilities/README.md index d56f3fb63c6f502d4112e14a66504e683c739dfe..576c2d8afdaf011033783b6da59dc531a50a7402 100644 --- a/AdaptiveCapabilities/README.md +++ b/AdaptiveCapabilities/README.md @@ -146,4 +146,15 @@ entry/src/main/ets 1. 本示例仅支持标准系统上运行,支持设备:华为手机、平板。 2. HarmonyOS系统:HarmonyOS 5.0.5 Release及以上。 3. DevEco Studio版本:DevEco Studio 5.0.5 Release及以上。 -4. HarmonyOS SDK版本:HarmonyOS 5.0.5 Release SDK及以上。 \ No newline at end of file +4. HarmonyOS SDK版本:HarmonyOS 5.0.5 Release SDK及以上。 + +### 下载 + +如需单独下载本工程,执行如下命令: +``` +git init +git config core.sparsecheckout true +echo AdaptiveCapabilities/ > .git/info/sparse-checkout +git remote add origin https://gitee.com/harmonyos_samples/BestPracticeSnippets.git +git pull origin master +``` \ No newline at end of file diff --git a/ApiUsingStandards/README.md b/ApiUsingStandards/README.md index 13657f235f8028cc482b1d4a70c83d1d288b75d8..a9b2db8ee007f46da192ca9413a3d1f29526b44b 100644 --- a/ApiUsingStandards/README.md +++ b/ApiUsingStandards/README.md @@ -52,4 +52,15 @@ 3. DevEco Studio版本:DevEco Studio 5.0.5 Release及以上。 -4. HarmonyOS SDK版本:HarmonyOS 5.0.5 Release SDK及以上。 \ No newline at end of file +4. HarmonyOS SDK版本:HarmonyOS 5.0.5 Release SDK及以上。 + +### 下载 + +如需单独下载本工程,执行如下命令: +``` +git init +git config core.sparsecheckout true +echo ApiUsingStandards/ > .git/info/sparse-checkout +git remote add origin https://gitee.com/harmonyos_samples/BestPracticeSnippets.git +git pull origin master +``` \ No newline at end of file diff --git a/AppAspectProgrammingDesign/README.md b/AppAspectProgrammingDesign/README.md index 7c20508f3f78160c529d1f511dc44228fcb35c98..c28c0291c6f46892e01191a7ccd64d7f32889821 100644 --- a/AppAspectProgrammingDesign/README.md +++ b/AppAspectProgrammingDesign/README.md @@ -48,4 +48,15 @@ 3. DevEco Studio版本:DevEco Studio 5.0.5 Release及以上。 -4. HarmonyOS SDK版本:HarmonyOS 5.0.5 Release SDK及以上。 \ No newline at end of file +4. HarmonyOS SDK版本:HarmonyOS 5.0.5 Release SDK及以上。 + +### 下载 + +如需单独下载本工程,执行如下命令: +``` +git init +git config core.sparsecheckout true +echo AppAspectProgrammingDesign/ > .git/info/sparse-checkout +git remote add origin https://gitee.com/harmonyos_samples/BestPracticeSnippets.git +git pull origin master +``` \ No newline at end of file diff --git a/AppColdStart/README.md b/AppColdStart/README.md index 12019e4f8d1d77a273930dc166f6d478a515ba1d..968f2d7ca6119f0d3f2701f7635f570b1cc059ec 100644 --- a/AppColdStart/README.md +++ b/AppColdStart/README.md @@ -52,4 +52,15 @@ * 本示例仅支持标准系统上运行,支持设备:华为手机。 * HarmonyOS系统:HarmonyOS 5.0.5 Release及以上。 * DevEco Studio版本:DevEco Studio 5.0.5 Release及以上。 -* HarmonyOS SDK版本:HarmonyOS 5.0.5 Release SDK及以上。 \ No newline at end of file +* HarmonyOS SDK版本:HarmonyOS 5.0.5 Release SDK及以上。 + +### 下载 + +如需单独下载本工程,执行如下命令: +``` +git init +git config core.sparsecheckout true +echo AppColdStart/ > .git/info/sparse-checkout +git remote add origin https://gitee.com/harmonyos_samples/BestPracticeSnippets.git +git pull origin master +``` \ No newline at end of file diff --git a/AppDataSecurity/README.md b/AppDataSecurity/README.md index 09f2972bfcbf96440623b1368cc29f25ce88601e..53bbecf02b2c7d9574ebc3ed4dd3fa39ddc39ded 100644 --- a/AppDataSecurity/README.md +++ b/AppDataSecurity/README.md @@ -42,4 +42,15 @@ 3. DevEco Studio版本:DevEco Studio 5.0.5 Release及以上。 -4. HarmonyOS SDK版本:HarmonyOS 5.0.5 Release SDK及以上。 \ No newline at end of file +4. HarmonyOS SDK版本:HarmonyOS 5.0.5 Release SDK及以上。 + +### 下载 + +如需单独下载本工程,执行如下命令: +``` +git init +git config core.sparsecheckout true +echo AppDataSecurity/ > .git/info/sparse-checkout +git remote add origin https://gitee.com/harmonyos_samples/BestPracticeSnippets.git +git pull origin master +``` \ No newline at end of file diff --git a/AppDataSecurity/README_EN.md b/AppDataSecurity/README_EN.md index 5c59ed2143bdd6b4debf75e87ed2211741ef19d2..2987149807725487197cdc7a24e8ef466ccf49ec 100644 --- a/AppDataSecurity/README_EN.md +++ b/AppDataSecurity/README_EN.md @@ -37,3 +37,14 @@ N/A 3. The DevEco Studio version must be DevEco Studio NEXT Release or later. 4. The HarmonyOS SDK version must be HarmonyOS NEXT Release SDK or later. + +### Download + +To download this project separately, execute the following command: +``` +git init +git config core.sparsecheckout true +echo AppDataSecurity/ > .git/info/sparse-checkout +git remote add origin https://gitee.com/harmonyos_samples/BestPracticeSnippets.git +git pull origin master +``` diff --git a/AppFreeze/README.md b/AppFreeze/README.md index b2cdd7c7a57e0c21f898fa84a03bb9b19b5e78b0..4973c6f07f5e96751dfd08f514729e06b30adc66 100644 --- a/AppFreeze/README.md +++ b/AppFreeze/README.md @@ -48,4 +48,15 @@ 3. DevEco Studio版本:DevEco Studio NEXT 5.0.5 Release及以上。 -4. HarmonyOS SDK版本:HarmonyOS NEXT 5.0.5 Release SDK及以上。 \ No newline at end of file +4. HarmonyOS SDK版本:HarmonyOS NEXT 5.0.5 Release SDK及以上。 + +### 下载 + +如需单独下载本工程,执行如下命令: +``` +git init +git config core.sparsecheckout true +echo AppFreeze/ > .git/info/sparse-checkout +git remote add origin https://gitee.com/harmonyos_samples/BestPracticeSnippets.git +git pull origin master +``` \ No newline at end of file diff --git a/AppPrivacyProtection/README.en.md b/AppPrivacyProtection/README.en.md index 67d3a902253cc26e822e089e38942f59683ad750..5778f26ddf390366d50c1c29969f58cda1ebde6f 100644 --- a/AppPrivacyProtection/README.en.md +++ b/AppPrivacyProtection/README.en.md @@ -52,3 +52,14 @@ N/A 3. The DevEco Studio version must be DevEco Studio 5.0.5 Release or later. 4. The HarmonyOS SDK version must be HarmonyOS 5.0.5 Release SDK or later. + +### Download + +To download this project separately, execute the following command: +``` +git init +git config core.sparsecheckout true +echo AppPrivacyProtection/ > .git/info/sparse-checkout +git remote add origin https://gitee.com/harmonyos_samples/BestPracticeSnippets.git +git pull origin master +``` diff --git a/AppPrivacyProtection/README.md b/AppPrivacyProtection/README.md index 00df5c39969ecda07c79ef730dc034acdb236a93..8896fc36bb2724cbd086c17de34a998b6abcf38b 100644 --- a/AppPrivacyProtection/README.md +++ b/AppPrivacyProtection/README.md @@ -51,5 +51,16 @@ 4. HarmonyOS SDK版本:HarmonyOS 5.0.5 Release SDK及以上。 +### 下载 + +如需单独下载本工程,执行如下命令: +``` +git init +git config core.sparsecheckout true +echo AppPrivacyProtection/ > .git/info/sparse-checkout +git remote add origin https://gitee.com/harmonyos_samples/BestPracticeSnippets.git +git pull origin master +``` + diff --git a/ArkTS_high_performance_segment/README.md b/ArkTS_high_performance_segment/README.md index a647f47473697450505b6020e87856171cfe4868..cdc3aec000c1d70e91360c68efeb9e08219cbcfb 100644 --- a/ArkTS_high_performance_segment/README.md +++ b/ArkTS_high_performance_segment/README.md @@ -12,4 +12,15 @@ * DevEco Studio版本:DevEco Studio 5.0.5 Release及以上。 -* HarmonyOS SDK版本:HarmonyOS 5.0.5 Release SDK及以上。 \ No newline at end of file +* HarmonyOS SDK版本:HarmonyOS 5.0.5 Release SDK及以上。 + +### 下载 + +如需单独下载本工程,执行如下命令: +``` +git init +git config core.sparsecheckout true +echo ArkTS_high_performance_segment/ > .git/info/sparse-checkout +git remote add origin https://gitee.com/harmonyos_samples/BestPracticeSnippets.git +git pull origin master +``` \ No newline at end of file diff --git a/ArkUI/Component_Nesting_Optimization/README_zh.md b/ArkUI/Component_Nesting_Optimization/README_zh.md index f4005d4ef085747edeb70c7df641f5ad0dae050a..92c505903ceabfe1ba0b7c565cefe3ef3a0e5166 100644 --- a/ArkUI/Component_Nesting_Optimization/README_zh.md +++ b/ArkUI/Component_Nesting_Optimization/README_zh.md @@ -37,4 +37,15 @@ 1. 本示例仅支持标准系统上运行,支持设备:华为手机。 2. HarmonyOS系统:HarmonyOS 5.0.5 Release及以上。 3. DevEco Studio版本:DevEco Studio 5.0.5 Release及以上。 -4. HarmonyOS SDK版本:HarmonyOS 5.0.5 Release SDK及以上。 \ No newline at end of file +4. HarmonyOS SDK版本:HarmonyOS 5.0.5 Release SDK及以上。 + +### 下载 + +如需单独下载本工程,执行如下命令: +``` +git init +git config core.sparsecheckout true +echo ArkUI/Component_Nesting_Optimization/ > .git/info/sparse-checkout +git remote add origin https://gitee.com/harmonyos_samples/BestPracticeSnippets.git +git pull origin master +``` \ No newline at end of file diff --git a/ArkUI/Component_Redundancy_Refresh_Optimization/README.md b/ArkUI/Component_Redundancy_Refresh_Optimization/README.md index 21e31f4bde978c768d0e493a189e288b6f918acd..828f8116d85a54509971b47be9f1abefc4a42ec7 100644 --- a/ArkUI/Component_Redundancy_Refresh_Optimization/README.md +++ b/ArkUI/Component_Redundancy_Refresh_Optimization/README.md @@ -44,4 +44,15 @@ 3. DevEco Studio版本:DevEco Studio NEXT 5.0.5 Release及以上。 -4. HarmonyOS SDK版本:HarmonyOS NEXT 5.0.5 Release SDK及以上。 \ No newline at end of file +4. HarmonyOS SDK版本:HarmonyOS NEXT 5.0.5 Release SDK及以上。 + +### 下载 + +如需单独下载本工程,执行如下命令: +``` +git init +git config core.sparsecheckout true +echo ArkUI/Component_Redundancy_Refresh_Optimization/ > .git/info/sparse-checkout +git remote add origin https://gitee.com/harmonyos_samples/BestPracticeSnippets.git +git pull origin master +``` \ No newline at end of file diff --git a/ArkUI/Lazy_Loading_Optimizes_Performance/README.md b/ArkUI/Lazy_Loading_Optimizes_Performance/README.md index 295cbe59e4e2d612b02dad163ee1656d8ee769f0..fab9015e34e07cbb8da82270d6c80fd1ca8a9c2e 100644 --- a/ArkUI/Lazy_Loading_Optimizes_Performance/README.md +++ b/ArkUI/Lazy_Loading_Optimizes_Performance/README.md @@ -39,4 +39,15 @@ 3. DevEco Studio版本:DevEco Studio 5.0.5 Release及以上。 -4. HarmonyOS SDK版本:HarmonyOS 5.0.5 Release SDK及以上。 \ No newline at end of file +4. HarmonyOS SDK版本:HarmonyOS 5.0.5 Release SDK及以上。 + +### 下载 + +如需单独下载本工程,执行如下命令: +``` +git init +git config core.sparsecheckout true +echo ArkUI/Lazy_Loading_Optimizes_Performance/ > .git/info/sparse-checkout +git remote add origin https://gitee.com/harmonyos_samples/BestPracticeSnippets.git +git pull origin master +``` \ No newline at end of file diff --git a/ArkUI/Proper_Use_Layout/README.md b/ArkUI/Proper_Use_Layout/README.md index 1f12f9d8c4fb7ba9f5209d9a60d867a7afa47301..fce346a589b87159a2bf3f5e127b780d08802b60 100644 --- a/ArkUI/Proper_Use_Layout/README.md +++ b/ArkUI/Proper_Use_Layout/README.md @@ -32,4 +32,15 @@ 3. DevEco Studio版本:DevEco Studio 5.0.5 Release及以上。 -4. HarmonyOS SDK版本:HarmonyOS 5.0.5 Release SDK及以上。 \ No newline at end of file +4. HarmonyOS SDK版本:HarmonyOS 5.0.5 Release SDK及以上。 + +### 下载 + +如需单独下载本工程,执行如下命令: +``` +git init +git config core.sparsecheckout true +echo Proper_Use_Layout/ > .git/info/sparse-checkout +git remote add origin https://gitee.com/harmonyos_samples/BestPracticeSnippets.git +git pull origin master +``` \ No newline at end of file diff --git a/ArkUI/Proper_Use_Layout/README_EN.md b/ArkUI/Proper_Use_Layout/README_EN.md index 3eda3463a87273c5583672632aefdad01b16ec0f..7e48c10fbc03c261b4ea9b16de11ee30b300d4dc 100644 --- a/ArkUI/Proper_Use_Layout/README_EN.md +++ b/ArkUI/Proper_Use_Layout/README_EN.md @@ -32,3 +32,14 @@ N/A 3. The DevEco Studio version must be DevEco Studio 5.0.5 Release or later. 4. The HarmonyOS SDK version must be HarmonyOS 5.0.5 Release SDK or later. + +### Download + +To download this project separately, execute the following command: +``` +git init +git config core.sparsecheckout true +echo Proper_Use_Layout/ > .git/info/sparse-checkout +git remote add origin https://gitee.com/harmonyos_samples/BestPracticeSnippets.git +git pull origin master +``` diff --git a/ArkUI/PureTabsExt/README.md b/ArkUI/PureTabsExt/README.md index e90bf7cff2589e45518f151e20e3d750485153e3..502a49f22f0452567ed7fc26963a366f5b399fc5 100644 --- a/ArkUI/PureTabsExt/README.md +++ b/ArkUI/PureTabsExt/README.md @@ -48,3 +48,14 @@ 3. DevEco Studio版本:DevEco Studio 5.0.5 Release及以上。 4. HarmonyOS SDK版本:HarmonyOS 5.0.5 Release SDK及以上。 + +### 下载 + +如需单独下载本工程,执行如下命令: +``` +git init +git config core.sparsecheckout true +echo PureTabsExt/ > .git/info/sparse-checkout +git remote add origin https://gitee.com/harmonyos_samples/BestPracticeSnippets.git +git pull origin master +``` diff --git a/ArkUI/StateManagement/README.md b/ArkUI/StateManagement/README.md index c29ad60601b470218ad764be1b70e22564b94340..a0277ca7976de3975501ffa9c6c659f785e40864 100644 --- a/ArkUI/StateManagement/README.md +++ b/ArkUI/StateManagement/README.md @@ -21,3 +21,14 @@ 3.DevEco Studio版本:DevEco Studio 5.0.5 Release及以上。 4.HarmonyOS SDK版本:HarmonyOS 5.0.5 Release SDK及以上。 + +### 下载 + +如需单独下载本工程,执行如下命令: +``` +git init +git config core.sparsecheckout true +echo StateManagement/ > .git/info/sparse-checkout +git remote add origin https://gitee.com/harmonyos_samples/BestPracticeSnippets.git +git pull origin master +``` diff --git a/ArkUI/UI_Component_Performance_Optimization/README.md b/ArkUI/UI_Component_Performance_Optimization/README.md index ae35392938271bd95de9edda8f16fe92f6332892..8fd82cb49c1e6ba20bdab5b7457c758af4ce94dd 100644 --- a/ArkUI/UI_Component_Performance_Optimization/README.md +++ b/ArkUI/UI_Component_Performance_Optimization/README.md @@ -40,4 +40,15 @@ * 本示例仅支持标准系统上运行,支持设备:华为手机。 * HarmonyOS系统:HarmonyOS 5.0.5 Release及以上。 * DevEco Studio版本:DevEco Studio 5.0.5 Release及以上。 -* HarmonyOS SDK版本:HarmonyOS 5.0.5 Release SDK及以上。 \ No newline at end of file +* HarmonyOS SDK版本:HarmonyOS 5.0.5 Release SDK及以上。 + +### 下载 + +如需单独下载本工程,执行如下命令: +``` +git init +git config core.sparsecheckout true +echo UI_Component_Performance_Optimization/ > .git/info/sparse-checkout +git remote add origin https://gitee.com/harmonyos_samples/BestPracticeSnippets.git +git pull origin master +``` \ No newline at end of file diff --git a/ArkUI/orientationDevelopment/README.md b/ArkUI/orientationDevelopment/README.md index 8d815134f3734a2b17a403c64bb884cd04e797dc..434fdf88f157017173d435bbcc472116aa89e3fd 100644 --- a/ArkUI/orientationDevelopment/README.md +++ b/ArkUI/orientationDevelopment/README.md @@ -39,4 +39,15 @@ entry/src/main/ 3.DevEco Studio版本:DevEco Studio 5.0.5 Release及以上。 -4.HarmonyOS SDK版本:HarmonyOS 5.0.5 Release SDK及以上。 \ No newline at end of file +4.HarmonyOS SDK版本:HarmonyOS 5.0.5 Release SDK及以上。 + +### 下载 + +如需单独下载本工程,执行如下命令: +``` +git init +git config core.sparsecheckout true +echo orientationDevelopment/ > .git/info/sparse-checkout +git remote add origin https://gitee.com/harmonyos_samples/BestPracticeSnippets.git +git pull origin master +``` \ No newline at end of file diff --git a/AvoidTimeComsume/README.md b/AvoidTimeComsume/README.md index f60de103b0d90130626be78cc041f18b63c6dda1..aa817a6076ec3ee85e7ab268a89b9518e4a475e0 100644 --- a/AvoidTimeComsume/README.md +++ b/AvoidTimeComsume/README.md @@ -62,4 +62,15 @@ * DevEco Studio版本:DevEco Studio 5.0.5 Release及以上。 -* HarmonyOS SDK版本:HarmonyOS 5.0.5 Release SDK及以上。 \ No newline at end of file +* HarmonyOS SDK版本:HarmonyOS 5.0.5 Release SDK及以上。 + +### 下载 + +如需单独下载本工程,执行如下命令: +``` +git init +git config core.sparsecheckout true +echo AvoidTimeComsume/ > .git/info/sparse-checkout +git remote add origin https://gitee.com/harmonyos_samples/BestPracticeSnippets.git +git pull origin master +``` \ No newline at end of file diff --git a/AvoidTimeComsume/README_EN.md b/AvoidTimeComsume/README_EN.md index 47d120dc5f3197138ec7dd5cf249c274cb287021..ba90a8b0bd267dac07aef449ff17daf7954b598f 100644 --- a/AvoidTimeComsume/README_EN.md +++ b/AvoidTimeComsume/README_EN.md @@ -3,8 +3,6 @@ In application development practices, it is important to effectively prevent the main thread from performing redundant and time-consuming operations. This can effectively reduce the load of the main thread and speed up the UI response. In scenarios where high-frequency callbacks are frequently triggered in a short period of time, time-consuming operations in the APIs need to be avoided to ensure that the main thread is not occupied for a long time. This prevents UI rendering from being blocked to avoid frame freezing or frame loss. This sample describes common redundant operations, common high-frequency callback scenarios, and other main thread optimization methods during development. -## Preview -![](screenshots/output-15_16_3.gif) ## Project Directory ``` ├──entry/src/main/ets // Code @@ -61,3 +59,14 @@ N/A * The DevEco Studio version must be DevEco Studio 5.0.5 Release or later. * The HarmonyOS SDK version must be HarmonyOS 5.0.5 Release SDK or later. + +### Download + +To download this project separately, execute the following command: +``` +git init +git config core.sparsecheckout true +echo AvoidTimeComsume/ > .git/info/sparse-checkout +git remote add origin https://gitee.com/harmonyos_samples/BestPracticeSnippets.git +git pull origin master +``` diff --git a/animation/README.md b/animation/README.md index c444975ea63369c485379721fb6a7345bab68b43..d434403136c0f3d7b200a344be9ae5ef4d72683d 100644 --- a/animation/README.md +++ b/animation/README.md @@ -38,4 +38,15 @@ * DevEco Studio版本:DevEco Studio 5.0.5 Release及以上。 -* HarmonyOS SDK版本:HarmonyOS 5.0.5 Release SDK及以上。 \ No newline at end of file +* HarmonyOS SDK版本:HarmonyOS 5.0.5 Release SDK及以上。 + +### 下载 + +如需单独下载本工程,执行如下命令: +``` +git init +git config core.sparsecheckout true +echo animation/ > .git/info/sparse-checkout +git remote add origin https://gitee.com/harmonyos_samples/BestPracticeSnippets.git +git pull origin master +``` \ No newline at end of file diff --git a/avscreen-capture-screen-record-master/README.en.md b/avscreen-capture-screen-record-master/README.en.md index d8f69d3c5127ffd9f38ceb0cb02bae924e4ccae6..842051478b1dc2357b9463d386fb35a632becc1d 100644 --- a/avscreen-capture-screen-record-master/README.en.md +++ b/avscreen-capture-screen-record-master/README.en.md @@ -72,4 +72,15 @@ N/A 1. This sample is only supported on Huawei phones running standard systems. 2. The HarmonyOS version must be HarmonyOS 5.1.0 Release or later. 3. The DevEco Studio version must be DevEco Studio 5.1.0 Release or later. -4. The HarmonyOS SDK version must be HarmonyOS 5.1.0 Release SDK or later. \ No newline at end of file +4. The HarmonyOS SDK version must be HarmonyOS 5.1.0 Release SDK or later. + +### Download + +To download this project separately, execute the following command: +``` +git init +git config core.sparsecheckout true +echo avscreen-capture-screen-record-master/ > .git/info/sparse-checkout +git remote add origin https://gitee.com/harmonyos_samples/BestPracticeSnippets.git +git pull origin master +``` \ No newline at end of file diff --git a/avscreen-capture-screen-record-master/README.md b/avscreen-capture-screen-record-master/README.md index de281872d2b58a2ab4124deb42b609946305dc61..404248dc8d1340a4285093a08ad3540e7f379896 100644 --- a/avscreen-capture-screen-record-master/README.md +++ b/avscreen-capture-screen-record-master/README.md @@ -71,4 +71,15 @@ 1. 本示例仅支持标准系统上运行,支持设备:华为手机。 2. HarmonyOS系统:HarmonyOS 5.1.0 Release及以上。 3. DevEco Studio版本:DevEco Studio 5.1.0 Release及以上。 -4. HarmonyOS SDK版本:HarmonyOS 5.1.0 Release SDK及以上。 \ No newline at end of file +4. HarmonyOS SDK版本:HarmonyOS 5.1.0 Release SDK及以上。 + +### 下载 + +如需单独下载本工程,执行如下命令: +``` +git init +git config core.sparsecheckout true +echo avscreen-capture-screen-record-master/ > .git/info/sparse-checkout +git remote add origin https://gitee.com/harmonyos_samples/BestPracticeSnippets.git +git pull origin master +``` \ No newline at end of file