diff --git a/README.en.md b/README.en.md new file mode 100644 index 0000000000000000000000000000000000000000..d432ade62d501faf2cafdd17d1b68fd78a258a07 --- /dev/null +++ b/README.en.md @@ -0,0 +1,30 @@ +# Window Manager + +### Introduction + +This codelab introduces how to implement verification code login based on the window manager. The following figure shows the effect. + +![](screenshots/device/windowmanager.en.gif) + +### Concepts + +- Main window: displays the app UI on the task management page. +- Subwindow: displays auxiliary windows such as a dialog box or floating window. +- Immersive window: controls system windows such as the status bar and navigation bar to reduce visual obtrusiveness, providing the optimal user experience. + +### Permissions + +N/A + +### How to Use + +1. Open the app. The main window is an immersive window. +2. Enter the user name and password. Tap the Login via Verification Code button. After the verification code subwindow is displayed, enter the verification code, and then tap OK. +3. The verification code subwindow disappears in 2 seconds after the verification is successful, and then the app home page is displayed. + +### Constraints + +1. The sample is only supported on Huawei phones with standard systems. +2. HarmonyOS: HarmonyOS NEXT Developer Beta1 or later. +3. DevEco Studio: DevEco Studio NEXT Developer Beta1 or later. +4. HarmonyOS SDK: HarmonyOS NEXT Developer Beta1 SDK or later. diff --git a/entry/src/main/resources/base/element/string.json b/entry/src/main/resources/base/element/string.json index 28efd25a728921e4c74aa26076112d88040454b7..ecd8320971e4b6357922b3eb82c9c3088a44d881 100644 --- a/entry/src/main/resources/base/element/string.json +++ b/entry/src/main/resources/base/element/string.json @@ -30,7 +30,7 @@ }, { "name": "verify", - "value": "Verify" + "value": "Login via Verification Code" }, { "name": "register_account", @@ -42,7 +42,7 @@ }, { "name": "message_login", - "value": "SMS verification code login" + "value": "Login via SMS" }, { "name": "change_one", diff --git a/entry/src/main/resources/en_US/element/string.json b/entry/src/main/resources/en_US/element/string.json index 28efd25a728921e4c74aa26076112d88040454b7..ecd8320971e4b6357922b3eb82c9c3088a44d881 100644 --- a/entry/src/main/resources/en_US/element/string.json +++ b/entry/src/main/resources/en_US/element/string.json @@ -30,7 +30,7 @@ }, { "name": "verify", - "value": "Verify" + "value": "Login via Verification Code" }, { "name": "register_account", @@ -42,7 +42,7 @@ }, { "name": "message_login", - "value": "SMS verification code login" + "value": "Login via SMS" }, { "name": "change_one", diff --git a/screenshots/device/windowmanager.en.gif b/screenshots/device/windowmanager.en.gif new file mode 100644 index 0000000000000000000000000000000000000000..334e9e939628e6caaa8d964c8952a3bf8d128448 Binary files /dev/null and b/screenshots/device/windowmanager.en.gif differ