Writy.
  • Home
  • HarmonyOS
    Honor Note 10

    February 2022 security update rolling out for Honor Note 10

    Huawei Mate 30 Series

    Huawei Mate 30 Series gets HarmonyOS 2.0.0.263 update [2nd June 2022 Update]

    Honor Play 4 Pro June 2022 patch Update

    Honor Play 4 Pro and Honor 30S grabbing June 2022 security update

    Honor V30 Series June 2022 security update

    Honor V30 Series and Honor Play 4 Pro getting June 2022 security update

    Huawei Nova 7 SE 5G

    Huawei Nova 7 5G and Nova 7 Pro 5G June 2022 security update

    Huawei Enjoy 20 SE HarmonyOS update

    Huawei Enjoy 20 SE getting June 2022 security patch

    Huawei Nova 7 SE 5G Vitality Edition June 2022 security update

    June 2022 Patch: Huawei Nova 7 SE 5G Vitality Edition and Lohas Edition updated

    Huawei P50 getting May 2022 security update

    Huawei P50 getting May 2022 security update

    Honor 30 Series grabbing June 2022 security update

    Honor 30 Series grabbing June 2022 security update

    Trending Tags

    • HarmonyOS 2
    • HarmonyOS 3
    • HarmonyOS History
  • EMUI 12
    Huawei EMUI 12 India and Asia Plan 2022

    Stable EMUI 12 update plan for India and Asia Pacific Market [Updated: June 24, 2022]

    Stable EMUI 12 update plan for Japan and Latin America

    Stable EMUI 12 update plan for Japan and Latin America

    Huawei EMUI 12 Russia and Middle East Plan Update Plan 2022

    Stable EMUI 12 update plan for Russia and Middle East [Updated: June 24, 2022]

    Huawei EMUI 12 Europe Plan

    Stable EMUI 12 update plan for Europe [Updated: June 23, 2022]

    Updated Huawei EMUI 12 plan for Global users 2022

    Updated EMUI 12 plan for Global users [June 23, 2022]

    Huawei Nova 8i

    May 2022 security update is now out for Nova 8i

    Huawei P40 Lite June 2022 security update

    Huawei P40 Lite getting June 2022 security update

    Huawei Nova 5T Update

    Huawei Nova 5T May 2022 security update is now circulating

    Huawei Mate 20 Pro May 2022 security update

    Huawei Mate 20 Pro grabbing May 2022 security update

    Trending Tags

    • EMUI 12
    • EMUI 11
  • EMUI 11
    • EMUI 10.1
    • Magic UI 3.1
    • EMUI History
  • News
    Huawei Mate 50 Pro tempered film

    Huawei Mate 50 Pro tempered film leaked

    Huawei Nova 10 and Nova 10 Pro

    Huawei Nova 10 and Nova 10 Pro series listed on JD.com

    Huawei AppGallery (1)

    Huawei AppGallery: New cleaning and Wi-Fi apps will no longer be listed

    FreeBuds Pro 2 first software update is now available

    FreeBuds Pro 2 first software update is now available

    Huawei Whole House Smart 2.0 official announcement (1)

    July 4, 2022: Huawei Whole House Smart 2.0 official announcement

    Huawei Mate 50 latest render spotted

    Huawei Mate 50 latest render spotted

    A new Huawei TV passed the 3C certification

    A new Huawei TV passed the 3C certification

    Huawei MateBook X Pro 2022 image

    Huawei may launch new MateBook X Pro next month

    Huawei Watch FIT 2 launching on July 4

    Huawei Watch FIT 2 launching on July 4 [China]

    Trending Tags

    • Mate 50
    • P40
    • Honor News
  • Huawei Apps
  • Tips And Tricks
  • Send A Tip
No Result
View All Result
HU
  • Home
  • HarmonyOS
    Honor Note 10

    February 2022 security update rolling out for Honor Note 10

    Huawei Mate 30 Series

    Huawei Mate 30 Series gets HarmonyOS 2.0.0.263 update [2nd June 2022 Update]

    Honor Play 4 Pro June 2022 patch Update

    Honor Play 4 Pro and Honor 30S grabbing June 2022 security update

    Honor V30 Series June 2022 security update

    Honor V30 Series and Honor Play 4 Pro getting June 2022 security update

    Huawei Nova 7 SE 5G

    Huawei Nova 7 5G and Nova 7 Pro 5G June 2022 security update

    Huawei Enjoy 20 SE HarmonyOS update

    Huawei Enjoy 20 SE getting June 2022 security patch

    Huawei Nova 7 SE 5G Vitality Edition June 2022 security update

    June 2022 Patch: Huawei Nova 7 SE 5G Vitality Edition and Lohas Edition updated

    Huawei P50 getting May 2022 security update

    Huawei P50 getting May 2022 security update

    Honor 30 Series grabbing June 2022 security update

    Honor 30 Series grabbing June 2022 security update

    Trending Tags

    • HarmonyOS 2
    • HarmonyOS 3
    • HarmonyOS History
  • EMUI 12
    Huawei EMUI 12 India and Asia Plan 2022

    Stable EMUI 12 update plan for India and Asia Pacific Market [Updated: June 24, 2022]

    Stable EMUI 12 update plan for Japan and Latin America

    Stable EMUI 12 update plan for Japan and Latin America

    Huawei EMUI 12 Russia and Middle East Plan Update Plan 2022

    Stable EMUI 12 update plan for Russia and Middle East [Updated: June 24, 2022]

    Huawei EMUI 12 Europe Plan

    Stable EMUI 12 update plan for Europe [Updated: June 23, 2022]

    Updated Huawei EMUI 12 plan for Global users 2022

    Updated EMUI 12 plan for Global users [June 23, 2022]

    Huawei Nova 8i

    May 2022 security update is now out for Nova 8i

    Huawei P40 Lite June 2022 security update

    Huawei P40 Lite getting June 2022 security update

    Huawei Nova 5T Update

    Huawei Nova 5T May 2022 security update is now circulating

    Huawei Mate 20 Pro May 2022 security update

    Huawei Mate 20 Pro grabbing May 2022 security update

    Trending Tags

    • EMUI 12
    • EMUI 11
  • EMUI 11
    • EMUI 10.1
    • Magic UI 3.1
    • EMUI History
  • News
    Huawei Mate 50 Pro tempered film

    Huawei Mate 50 Pro tempered film leaked

    Huawei Nova 10 and Nova 10 Pro

    Huawei Nova 10 and Nova 10 Pro series listed on JD.com

    Huawei AppGallery (1)

    Huawei AppGallery: New cleaning and Wi-Fi apps will no longer be listed

    FreeBuds Pro 2 first software update is now available

    FreeBuds Pro 2 first software update is now available

    Huawei Whole House Smart 2.0 official announcement (1)

    July 4, 2022: Huawei Whole House Smart 2.0 official announcement

    Huawei Mate 50 latest render spotted

    Huawei Mate 50 latest render spotted

    A new Huawei TV passed the 3C certification

    A new Huawei TV passed the 3C certification

    Huawei MateBook X Pro 2022 image

    Huawei may launch new MateBook X Pro next month

    Huawei Watch FIT 2 launching on July 4

    Huawei Watch FIT 2 launching on July 4 [China]

    Trending Tags

    • Mate 50
    • P40
    • Honor News
  • Huawei Apps
  • Tips And Tricks
  • Send A Tip
No Result
View All Result
HU
No Result
View All Result

Huawei HarmonyOS 2 adds 5 practical examples of Sample: Grid layout, adaptive card and more

by Amit
August 28, 2021
in Harmony OS 2, Hongmeng
0
Huawei HarmonyOS Sample
585
SHARES
3.3k
VIEWS
Share on FacebookShare on Twitter

Huawei HarmonyOS has released the new Sample this week, and five super practical examples have been added. Click the download link below to download and learn!

Sample 1: Add NativeLayer sample

You might also like

Honor Note 10

February 2022 security update rolling out for Honor Note 10

July 1, 2022
Huawei Mate 30 Series

Huawei Mate 30 Series gets HarmonyOS 2.0.0.263 update [2nd June 2022 Update]

June 30, 2022

Scenario: Native_layer declares the JNI related to the native layer. This example shows the use of the JNI interface on Native_layer, so that the application can obtain the native layer that matches the Java surface object, obtain the native layer information, and also set the native layer size and layer grid.

● Download link:

https://gitee.com/openharmony/app_samples/tree/master/native/NativeLayer

Sample 2: New grid layout

Scenario: This example uses a grid system for element layout, which is mainly implemented by the <grid-container\>, <grid-row\>, and <grid-col\> tags.

● Download link:

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

Sample 3: New JS canvas example

Scenario: The <canvas\> component can be customized to draw graphics. This example shows how to use the <canvas\> component.

●Download link:

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

Sample 4: New adaptive page and adaptive efficiency homepage example

Scenario: This example uses five types of immersive cards, graphic cards, grid cards, plain text cards, and multi-dimensional information cards to demonstrate the adaptive capabilities of cards on devices of different sizes. When the card is extremely wide and extremely high, the card will be displayed through adaptive capabilities such as stretching, zooming, hiding, folding, and evenly dividing.

● Download link:

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

Sample 5: New adaptive card example

Scenario: This example shows a list page. On devices of different sizes, through adaptive capabilities such as stretching, zooming, sharing, and proportioning, it uses polymorphic controls, the extensibility of layouts and components, and the use of responsive layouts. , Adaptive display is a reasonable layout effect.

● Download link:

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

If you have any questions or needs during use, please submit an issue on Gitee.

Huawei HarmonyOS Sample

(Via)

Join_Huawei_Update_Telegram_Channel

Tags: Harmony OSHarmony OS 2HarmonyOSHarmonyOS 2HuaweiHUAWEI HarmonyOSnews
Share234Tweet146ShareShareSend
Amit

Amit

I write about Huawei Latest News, EMUI Updates & more. I am also a fitness freak. For any information, tip or help send me an email at huaweiupdatenews@gmail.com

Recommended

Huawei Weekly Update June 19, 2022 to June 25, 2022

Huawei Weekly Update: June 19, 2022 to June 25, 2022

June 26, 2022
Huawei Whole House Smart 2.0 official announcement (1)

July 4, 2022: Huawei Whole House Smart 2.0 official announcement

June 28, 2022

Popular Story

  • Status bar of HarmonyOS 3

    Status bar of HarmonyOS 3 changed: HD icon removed, WiFi icon Shifted

    661 shares
    Share 264 Tweet 165
  • Updated EMUI 12 plan for Global users [June 23, 2022]

    2724 shares
    Share 1090 Tweet 681
  • Download Huawei HMS Core 6.6.0.301 APK

    1267 shares
    Share 507 Tweet 317
  • Huawei HarmonyOS OS 3.0 official version launching in July 2022

    637 shares
    Share 255 Tweet 159
  • Download the latest Huawei Apps [Updated]

    1460 shares
    Share 584 Tweet 365

At HuaweiUpdate.com, you/users will get complete information of Huawei news, Huawei's new product launch, EMUI update news, and How-to guides.

  • About Us
  • Privacy Policy
  • Sitemap
  • Send A Tip

Copyright © 2022 HU

No Result
View All Result
  • Home
  • HarmonyOS
    • HarmonyOS History
  • EMUI 12
  • EMUI 11
    • EMUI 10.1
    • Magic UI 3.1
    • EMUI History
  • News
    • Honor News
  • Huawei Apps
  • Tips And Tricks
  • Send A Tip

Copyright © 2022 HU