HU
No Result
View All Result
  • Home
  • HarmonyOS
    • HarmonyOS History
  • EMUI Updates
    • EMUI History
  • News
    Huawei Mate 80 Pro

    Huawei Mate 90 Hardware Upgrades & INSPIRE 2026 Cloud News

    MTN Zambia and Huawei

    MTN Zambia and Huawei, have teamed up to fix a big problem

    Huawei & Angola Partner

    Huawei & Angola Partner for Smart Grid Transformation & Green Energy

    Huawei Mate 90 news

    Huawei Mate 90 Series Sales Date: Flagship Timeline Revealed Early

    Huawei Nova 16 Ultra

    Huawei Nova 16 Ultra launched with 200MP camera and 7000mAh battery

    Huawei Maextro S800 ultra

    Huawei Maextro S800 ultra luxury sedan outsells Mercedes Maybach in China

    Huawei Keyrus

    Huawei partners with Keyrus to scale data and AI tools in global markets

    Huawei Logo Image - Credit Unsplash

    Huawei Ascend chips reach major milestone in new DeepSeek AI update

    Huawei Gartner 2026 image

    Huawei Named Leader in 2026 Gartner Wired and Wireless LAN Infrastructure Magic Quadrant

    Trending Tags

    • Mate 50
    • P40
  • Send A Tip
  • Home
  • HarmonyOS
    • HarmonyOS History
  • EMUI Updates
    • EMUI History
  • News
    Huawei Mate 80 Pro

    Huawei Mate 90 Hardware Upgrades & INSPIRE 2026 Cloud News

    MTN Zambia and Huawei

    MTN Zambia and Huawei, have teamed up to fix a big problem

    Huawei & Angola Partner

    Huawei & Angola Partner for Smart Grid Transformation & Green Energy

    Huawei Mate 90 news

    Huawei Mate 90 Series Sales Date: Flagship Timeline Revealed Early

    Huawei Nova 16 Ultra

    Huawei Nova 16 Ultra launched with 200MP camera and 7000mAh battery

    Huawei Maextro S800 ultra

    Huawei Maextro S800 ultra luxury sedan outsells Mercedes Maybach in China

    Huawei Keyrus

    Huawei partners with Keyrus to scale data and AI tools in global markets

    Huawei Logo Image - Credit Unsplash

    Huawei Ascend chips reach major milestone in new DeepSeek AI update

    Huawei Gartner 2026 image

    Huawei Named Leader in 2026 Gartner Wired and Wireless LAN Infrastructure Magic Quadrant

    Trending Tags

    • Mate 50
    • P40
  • Send A Tip
No Result
View All Result
HUpdate
No Result
View All Result
Home Harmony OS 2

HarmonyOS development adds 8 new samples

Min by Min
November 16, 2021
in Harmony OS 2, Updates
0
HarmonyOS Samples (1)

HarmonyOS Samples (1)

154
SHARES
1.9k
VIEWS
Share on FacebookShare on Twitter

Huawei HarmonyOS has released new information regarding the HarmonyOS Sample, it added eight super practical application examples, of which three are examples of a declarative paradigm based on TS extensible development.

Explain that “the declarative development paradigm based on TS extension” is one of the two development paradigms provided by the Ark development framework. It adopts a programming approach that is closer to natural semantics, allowing developers to intuitively describe the UI interface without having to care about how the framework implements UI drawing and rendering, achieving minimal and efficient development. The official website document has updated the development guide, and interested friends can go to the official website to learn.

READ ALSO

Huawei Health App Update 2026: New AI Features

Huawei Music Latest 2026 Update

Sample 1: New JS NativeDemo sample

Scenario: This example uses JS and C++ to develop, uses JS to call C++ code, and displays the running result of C++ code on the UI.

Operating environment: HarmonyOS

Source download link:

https://gitee.com/harmonyos/harmonyos_app_samples/tree/master/native/JSNativeDemo

Sample 2: New JS Panel sample

Scenario: This example displays product details and platform guarantees through a sliding panel. JS provides a lightweight content display panel, this panel can be slid, you can customize the trigger method, pop-up height and other attributes.

Operating environment: OpenHarmony

Source download link:

https://gitee.com/openharmony/app_samples/tree/master/UI/JsPanel

Sample 3: New JS List sample

Scenario: This example shows the application of the list control in the product classification list. Two list items are used in the list group to show the two list forms of Group contraction and Group expansion. After clicking, the corresponding list will pop up.

Operating environment: OpenHarmony

Source download link:

https://gitee.com/openharmony/app_samples/tree/master/UI/JsList

Sample 4: New JS Svg sample

Scenario: This example shows the use of the component and its sub-components in JS, including,

Operating environment: OpenHarmony

Source download link:

https://gitee.com/openharmony/app_samples/tree/master/UI/JsSvg

Sample 5: New JS Dialog example

Scenario: This example completes the function of adding and deleting contacts, and uses custom pop-up windows to implement when adding and deleting contacts. JS supports user-defined pop-up windows. Components are used as container components. Users can customize the style and layout of pop-up windows.

Operating environment: OpenHarmony

Source download link:

https://gitee.com/openharmony/app_samples/tree/master/UI/JsDialog

Sample 6: Add eTSBuildCommonView to create a simple view example

Scenario: This example uses a simple page constructed by Stack layout and Flex layout to display pictures and nutritional information of food tomatoes. For details, refer to the official website document: ArkUI-> Declarative Development Paradigm Based on TS Extension -> Experience Declarative UI.

Operating environment: HarmonyOS and OpenHarmony (different operating systems, the sample source code is different)

Run on HarmonyOS source download link:

https://gitee.com/harmonyos/harmonyos_app_samples/tree/master/ETSUI/eTSBuildCommonView

Run on OpenHarmony source download link:

https://gitee.com/openharmony/app_samples/tree/master/UI/eTSBuildCommonView

Sample 7: Add eTSDefiningPageLayoutAndConnection page layout and connection example

Scenario: This example builds a food category list page and a food details page, including: List layout: create a food data model, ForEach loops to render ListItem; Grid layout: display food classification information, create Tabs tabs to display different categories of food; routing mechanism: Data transfer between router interface, Navigator and pages. For details, refer to the official website document: ArkUI-> Declarative Development Paradigm Based on TS Extension -> Page Layout and Connection.

Operating environment: HarmonyOS and OpenHarmony (different operating systems, the sample source code is different)

Run on HarmonyOS source download link:

https://gitee.com/harmonyos/harmonyos_app_samples/tree/master/ETSUI/eTSDefiningPageLayoutAndConnection

Run on OpenHarmony source download link:

https://gitee.com/openharmony/app_samples/tree/master/UI/eTSDefiningPageLayoutAndConnection

Sample 8: Added eTSDrawingAndAnimation drawing and animation examples

Scenario: This example implements the dynamic part of the healthy diet application, including: Logo drawing: use the drawing components Shape and Path to draw the logo of the healthy diet application; splash screen and page transition dynamic effects: explicit animation animateTo realize splash screen animation, add The transition animation of shared elements from the food category list page to the food details page. For details, refer to the official website document: ArkUI-> Declarative Development Paradigm Based on TS Extension -> Drawing and Animation.

Operating environment: HarmonyOS

Source download link:

https://gitee.com/harmonyos/harmonyos_app_samples/tree/master/ETSUI/eTSDrawingAndAnimation.

HarmonyOS Samples

(Via)

 

Tags: Harmony OSHarmony OS 2Harmony OS 2.0HarmonyOSHarmonyOS 2HarmonyOS 2.0HuaweiHUAWEI HarmonyOS

Related Posts

Huawei Health App Update
Huawei Apps Apk

Huawei Health App Update 2026: New AI Features

July 15, 2026
Huawei Music
Huawei Apps Apk

Huawei Music Latest 2026 Update

May 28, 2026
Huawei Mate XT Tri Fold Phone
HarmonyOS 5

Huawei Mate XT HarmonyOS 5.1.0.128 update rolling out

July 30, 2025
Huawei Mate 70 lineup
Updates

Huawei Mate 70 lineup launch event details revealed: Mate X6, MatePad Pro 13.2 and more

November 15, 2024
Huawei FreeBuds 6i
HarmonyOS 4

Huawei FreeBuds 6i HarmonyOS 4.2.0.216 update rolling out

November 6, 2024
Huawei Browser Update 2023
Huawei Apps Apk

Huawei Browser November 2024 update brings 15.0.7.301 version

November 1, 2024

About

HUpdate brings you the latest Huawei news, HarmonyOS & EMUI updates, firmware releases, and device coverage — all in one place. Stay updated with accurate, timely Huawei tech news.

Categories

  • Android
  • Ark OS
  • Deal
  • EMUI
  • EMUI 10
  • EMUI 10 Timeline
  • EMUI 10.1
  • EMUI 11
  • EMUI 12
  • EMUI 13
  • EMUI 14
  • EMUI 9.1
  • Game
  • Guides And How-To
  • Harmony OS 2
  • HarmonyOS 3
  • HarmonyOS 4
  • HarmonyOS 5
  • Hongmeng
  • Honor Products
  • Huawei 5G
  • Huawei Apps Apk
  • Huawei Mobile Services
  • Huawei News
  • Huawei Phones
  • Huawei Weekly Report
  • Magic UI 3
  • Magic UI 3.1
  • Magic UI 4.0
  • News
  • Tips And Tricks
  • Uncategorized
  • Updates

Recent Posts

  • Huawei Health App Update 2026: New AI Features
  • Huawei Mate 90 Hardware Upgrades & INSPIRE 2026 Cloud News
  • MTN Zambia and Huawei, have teamed up to fix a big problem
  • Huawei & Angola Partner for Smart Grid Transformation & Green Energy
  • About Us
  • Privacy Policy
  • Sitemap
  • Send A Tip

© 2026 HUpdate

No Result
View All Result
  • Home
  • HarmonyOS
    • HarmonyOS History
  • EMUI Updates
    • EMUI History
  • News
  • Send A Tip

© 2026 HUpdate

Go to mobile version