From 57f2f1d4b2c3b93979ea28d65997ec1db2ae989f Mon Sep 17 00:00:00 2001 From: Sai Date: Sat, 25 Sep 2021 22:23:06 +0530 Subject: [PATCH] Added UI_component_and_Layout assignment --- .../First_project/.gitignore | 15 + .../First_project/.idea/.gitignore | 3 + .../First_project/.idea/compiler.xml | 6 + .../First_project/.idea/gradle.xml | 22 ++ .../First_project/.idea/jarRepositories.xml | 30 ++ .../First_project/.idea/misc.xml | 4 + .../phone/phoneSettingConfig_-278092406.json | 25 ++ .../.idea/previewer/previewConfig.json | 9 + .../tabletSettingConfig_-278092406.json | 25 ++ .../tv/tvSettingConfig_-278092406.json | 25 ++ .../First_project/build.gradle | 38 +++ .../First_project/entry/.gitignore | 1 + .../First_project/entry/build.gradle | 27 ++ .../First_project/entry/proguard-rules.pro | 1 + .../First_project/entry/src/main/config.json | 48 +++ .../example/first_project/MainAbility.java | 13 + .../example/first_project/MyApplication.java | 10 + .../first_project/slice/LastAbilitySlice.java | 13 + .../first_project/slice/MainAbilitySlice.java | 40 +++ .../first_project/slice/NextAbilitySlice.java | 13 + .../main/resources/base/element/string.json | 16 + .../base/graphic/background_ability_main.xml | 7 + .../resources/base/graphic/btn_curve1.xml | 14 + .../resources/base/graphic/btn_curve2.xml | 15 + .../main/resources/base/graphic/button.xml | 17 + .../main/resources/base/graphic/button1.xml | 17 + .../resources/base/graphic/button_home.xml | 17 + .../resources/base/graphic/txt_curve1.xml | 14 + .../resources/base/graphic/txt_curve2.xml | 17 + .../resources/base/layout/ability_main.xml | 221 ++++++++++++ .../resources/base/layout/ability_second.xml | 319 ++++++++++++++++++ .../resources/base/layout/ability_third.xml | 141 ++++++++ .../main/resources/base/media/Calendar_1.png | Bin 0 -> 5080 bytes .../main/resources/base/media/adress_icon.png | Bin 0 -> 142826 bytes .../main/resources/base/media/background0.jpg | Bin 0 -> 1713773 bytes .../resources/base/media/birthday_icon.png | Bin 0 -> 23192 bytes .../resources/base/media/contact_icon.png | Bin 0 -> 171006 bytes .../src/main/resources/base/media/dob.png | Bin 0 -> 12048 bytes .../src/main/resources/base/media/dob3.png | Bin 0 -> 4584 bytes .../src/main/resources/base/media/em3.png | Bin 0 -> 2527 bytes .../main/resources/base/media/email_icon.png | Bin 0 -> 24943 bytes .../src/main/resources/base/media/ge3.png | Bin 0 -> 5325 bytes .../src/main/resources/base/media/gender.png | Bin 0 -> 6610 bytes .../src/main/resources/base/media/icon.png | Bin 0 -> 6790 bytes .../src/main/resources/base/media/line.png | Bin 0 -> 705 bytes .../main/resources/base/media/password.png | Bin 0 -> 559 bytes .../main/resources/base/media/phone_icon.png | Bin 0 -> 118349 bytes .../src/main/resources/base/media/ps3.png | Bin 0 -> 3442 bytes .../src/main/resources/base/media/us3.png | Bin 0 -> 4760 bytes .../src/main/resources/base/media/user.png | Bin 0 -> 16826 bytes .../src/main/resources/en/element/string.json | 16 + .../src/main/resources/zh/element/string.json | 16 + .../first_project/ExampleOhosTest.java | 14 + .../example/first_project/ExampleTest.java | 9 + .../First_project/gradle.properties | 13 + .../gradle/wrapper/gradle-wrapper.jar | Bin 0 -> 58694 bytes .../gradle/wrapper/gradle-wrapper.properties | 5 + .../First_project/gradlew | 183 ++++++++++ .../First_project/gradlew.bat | 103 ++++++ .../First_project/settings.gradle | 1 + 60 files changed, 1543 insertions(+) create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/.gitignore create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/.idea/.gitignore create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/.idea/compiler.xml create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/.idea/gradle.xml create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/.idea/jarRepositories.xml create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/.idea/misc.xml create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/.idea/previewer/phone/phoneSettingConfig_-278092406.json create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/.idea/previewer/previewConfig.json create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/.idea/previewer/tablet/tabletSettingConfig_-278092406.json create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/.idea/previewer/tv/tvSettingConfig_-278092406.json create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/build.gradle create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/.gitignore create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/build.gradle create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/proguard-rules.pro create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/config.json create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/java/com/example/first_project/MainAbility.java create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/java/com/example/first_project/MyApplication.java create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/java/com/example/first_project/slice/LastAbilitySlice.java create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/java/com/example/first_project/slice/MainAbilitySlice.java create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/java/com/example/first_project/slice/NextAbilitySlice.java create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/element/string.json create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/graphic/background_ability_main.xml create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/graphic/btn_curve1.xml create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/graphic/btn_curve2.xml create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/graphic/button.xml create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/graphic/button1.xml create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/graphic/button_home.xml create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/graphic/txt_curve1.xml create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/graphic/txt_curve2.xml create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/layout/ability_main.xml create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/layout/ability_second.xml create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/layout/ability_third.xml create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/media/Calendar_1.png create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/media/adress_icon.png create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/media/background0.jpg create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/media/birthday_icon.png create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/media/contact_icon.png create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/media/dob.png create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/media/dob3.png create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/media/em3.png create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/media/email_icon.png create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/media/ge3.png create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/media/gender.png create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/media/icon.png create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/media/line.png create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/media/password.png create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/media/phone_icon.png create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/media/ps3.png create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/media/us3.png create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/media/user.png create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/en/element/string.json create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/zh/element/string.json create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/ohosTest/java/com/example/first_project/ExampleOhosTest.java create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/test/java/com/example/first_project/ExampleTest.java create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/gradle.properties create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/gradle/wrapper/gradle-wrapper.jar create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/gradle/wrapper/gradle-wrapper.properties create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/gradlew create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/gradlew.bat create mode 100644 UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/settings.gradle diff --git a/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/.gitignore b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/.gitignore new file mode 100644 index 0000000..37a4eb8 --- /dev/null +++ b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/.gitignore @@ -0,0 +1,15 @@ +*.iml +.gradle +/local.properties +/.idea/caches +/.idea/libraries +/.idea/modules.xml +/.idea/workspace.xml +/.idea/navEditor.xml +/.idea/assetWizardSettings.xml +.DS_Store +/build +/captures +.externalNativeBuild +/entry/.preview +.cxx diff --git a/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/.idea/.gitignore b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/.idea/compiler.xml b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/.idea/compiler.xml new file mode 100644 index 0000000..61a9130 --- /dev/null +++ b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/.idea/compiler.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/.idea/gradle.xml b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/.idea/gradle.xml new file mode 100644 index 0000000..82c453f --- /dev/null +++ b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/.idea/gradle.xml @@ -0,0 +1,22 @@ + + + + + + + \ No newline at end of file diff --git a/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/.idea/jarRepositories.xml b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/.idea/jarRepositories.xml new file mode 100644 index 0000000..1dfcd02 --- /dev/null +++ b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/.idea/jarRepositories.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/.idea/misc.xml b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/.idea/misc.xml new file mode 100644 index 0000000..58918f5 --- /dev/null +++ b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/.idea/misc.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/.idea/previewer/phone/phoneSettingConfig_-278092406.json b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/.idea/previewer/phone/phoneSettingConfig_-278092406.json new file mode 100644 index 0000000..69beee7 --- /dev/null +++ b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/.idea/previewer/phone/phoneSettingConfig_-278092406.json @@ -0,0 +1,25 @@ +{ + "setting": { + "1.0.1": { + "Language": { + "args": { + "Language": "zh_CN" + } + } + } + }, + "frontend": { + "1.0.0": { + "Resolution": { + "args": { + "Resolution": "360*780" + } + }, + "DeviceType": { + "args": { + "DeviceType": "phone" + } + } + } + } +} \ No newline at end of file diff --git a/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/.idea/previewer/previewConfig.json b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/.idea/previewer/previewConfig.json new file mode 100644 index 0000000..402aad7 --- /dev/null +++ b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/.idea/previewer/previewConfig.json @@ -0,0 +1,9 @@ +{ + "1.0.0": { + "LastPreviewDevice": { + "C:\\Users\\sai\\DevEcoStudioProjects\\First_project\\entry": [ + "phone" + ] + } + } +} \ No newline at end of file diff --git a/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/.idea/previewer/tablet/tabletSettingConfig_-278092406.json b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/.idea/previewer/tablet/tabletSettingConfig_-278092406.json new file mode 100644 index 0000000..278b671 --- /dev/null +++ b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/.idea/previewer/tablet/tabletSettingConfig_-278092406.json @@ -0,0 +1,25 @@ +{ + "setting": { + "1.0.1": { + "Language": { + "args": { + "Language": "zh_CN" + } + } + } + }, + "frontend": { + "1.0.0": { + "Resolution": { + "args": { + "Resolution": "1024*640" + } + }, + "DeviceType": { + "args": { + "DeviceType": "tablet" + } + } + } + } +} \ No newline at end of file diff --git a/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/.idea/previewer/tv/tvSettingConfig_-278092406.json b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/.idea/previewer/tv/tvSettingConfig_-278092406.json new file mode 100644 index 0000000..735b784 --- /dev/null +++ b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/.idea/previewer/tv/tvSettingConfig_-278092406.json @@ -0,0 +1,25 @@ +{ + "setting": { + "1.0.1": { + "Language": { + "args": { + "Language": "zh-CN" + } + } + } + }, + "frontend": { + "1.0.0": { + "Resolution": { + "args": { + "Resolution": "960*540" + } + }, + "DeviceType": { + "args": { + "DeviceType": "tv" + } + } + } + } +} \ No newline at end of file diff --git a/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/build.gradle b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/build.gradle new file mode 100644 index 0000000..6606fa8 --- /dev/null +++ b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/build.gradle @@ -0,0 +1,38 @@ +// Top-level build file where you can add configuration options common to all sub-projects/modules. +apply plugin: 'com.huawei.ohos.app' + +//For instructions on signature configuration, see https://developer.harmonyos.com/en/docs/documentation/doc-guides/ide_debug_device-0000001053822404#EN-US_TOPIC_0000001154985555__section1112183053510 +ohos { + compileSdkVersion 5 + defaultConfig { + compatibleSdkVersion 5 + } +} + +buildscript { + repositories { + maven { + url 'https://repo.huaweicloud.com/repository/maven/' + } + maven { + url 'https://developer.huawei.com/repo/' + } + jcenter() + } + dependencies { + classpath 'com.huawei.ohos:hap:2.4.4.2' + classpath 'com.huawei.ohos:decctest:1.2.4.0' + } +} + +allprojects { + repositories { + maven { + url 'https://repo.huaweicloud.com/repository/maven/' + } + maven { + url 'https://developer.huawei.com/repo/' + } + jcenter() + } +} diff --git a/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/.gitignore b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/.gitignore new file mode 100644 index 0000000..796b96d --- /dev/null +++ b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/.gitignore @@ -0,0 +1 @@ +/build diff --git a/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/build.gradle b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/build.gradle new file mode 100644 index 0000000..0e151f8 --- /dev/null +++ b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/build.gradle @@ -0,0 +1,27 @@ +apply plugin: 'com.huawei.ohos.hap' +apply plugin: 'com.huawei.ohos.decctest' +//For instructions on signature configuration, see https://developer.harmonyos.com/en/docs/documentation/doc-guides/ide_debug_device-0000001053822404#EN-US_TOPIC_0000001154985555__section1112183053510 +ohos { + compileSdkVersion 5 + defaultConfig { + compatibleSdkVersion 5 + } + buildTypes { + release { + proguardOpt { + proguardEnabled false + rulesFiles 'proguard-rules.pro' + } + } + } + +} + +dependencies { + implementation fileTree(dir: 'libs', include: ['*.jar', '*.har']) + testImplementation 'junit:junit:4.13' + ohosTestImplementation 'com.huawei.ohos.testkit:runner:1.0.0.100' +} +decc { + supportType = ['html','xml'] +} diff --git a/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/proguard-rules.pro b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/proguard-rules.pro new file mode 100644 index 0000000..f7666e4 --- /dev/null +++ b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/proguard-rules.pro @@ -0,0 +1 @@ +# config module specific ProGuard rules here. \ No newline at end of file diff --git a/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/config.json b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/config.json new file mode 100644 index 0000000..99915f7 --- /dev/null +++ b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/config.json @@ -0,0 +1,48 @@ +{ + "app": { + "bundleName": "com.example.first_project", + "vendor": "example", + "version": { + "code": 1000000, + "name": "1.0.0" + } + }, + "deviceConfig": {}, + "module": { + "package": "com.example.first_project", + "name": ".MyApplication", + "mainAbility": "com.example.first_project.MainAbility", + "deviceType": [ + "phone", + "tablet", + "tv" + ], + "distro": { + "deliveryWithInstall": true, + "moduleName": "entry", + "moduleType": "entry", + "installationFree": true + }, + "abilities": [ + { + "skills": [ + { + "entities": [ + "entity.system.home" + ], + "actions": [ + "action.system.home" + ] + } + ], + "orientation": "unspecified", + "name": "com.example.first_project.MainAbility", + "icon": "$media:icon", + "description": "$string:mainability_description", + "label": "$string:entry_MainAbility", + "type": "page", + "launchType": "standard" + } + ] + } +} \ No newline at end of file diff --git a/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/java/com/example/first_project/MainAbility.java b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/java/com/example/first_project/MainAbility.java new file mode 100644 index 0000000..dd7314e --- /dev/null +++ b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/java/com/example/first_project/MainAbility.java @@ -0,0 +1,13 @@ +package com.example.first_project; + +import com.example.first_project.slice.MainAbilitySlice; +import ohos.aafwk.ability.Ability; +import ohos.aafwk.content.Intent; + +public class MainAbility extends Ability { + @Override + public void onStart(Intent intent) { + super.onStart(intent); + super.setMainRoute(MainAbilitySlice.class.getName()); + } +} diff --git a/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/java/com/example/first_project/MyApplication.java b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/java/com/example/first_project/MyApplication.java new file mode 100644 index 0000000..0462c21 --- /dev/null +++ b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/java/com/example/first_project/MyApplication.java @@ -0,0 +1,10 @@ +package com.example.first_project; + +import ohos.aafwk.ability.AbilityPackage; + +public class MyApplication extends AbilityPackage { + @Override + public void onInitialize() { + super.onInitialize(); + } +} diff --git a/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/java/com/example/first_project/slice/LastAbilitySlice.java b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/java/com/example/first_project/slice/LastAbilitySlice.java new file mode 100644 index 0000000..0f7771d --- /dev/null +++ b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/java/com/example/first_project/slice/LastAbilitySlice.java @@ -0,0 +1,13 @@ +package com.example.first_project.slice; + +import com.example.first_project.ResourceTable; +import ohos.aafwk.ability.AbilitySlice; +import ohos.aafwk.content.Intent; + +public class LastAbilitySlice extends AbilitySlice { + @Override + public void onStart(Intent intent) { + super.onStart(intent); + super.setUIContent(ResourceTable.Layout_ability_third); + } +} \ No newline at end of file diff --git a/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/java/com/example/first_project/slice/MainAbilitySlice.java b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/java/com/example/first_project/slice/MainAbilitySlice.java new file mode 100644 index 0000000..e41363a --- /dev/null +++ b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/java/com/example/first_project/slice/MainAbilitySlice.java @@ -0,0 +1,40 @@ +package com.example.first_project.slice; + +import com.example.first_project.ResourceTable; +import ohos.aafwk.ability.AbilitySlice; +import ohos.aafwk.content.Intent; +import ohos.agp.components.Button; +import ohos.agp.components.Component; + +public class MainAbilitySlice extends AbilitySlice { + @Override + public void onStart(Intent intent) { + super.onStart(intent); + super.setUIContent(ResourceTable.Layout_ability_main); + Button bt =(Button) findComponentById(ResourceTable.Id_next_button); + + bt.setClickedListener(new Component.ClickedListener() { + @Override + public void onClick(Component component) { + present(new NextAbilitySlice(), new Intent()); + } + }); + Button bt1 =(Button) findComponentById(ResourceTable.Id_last_button); + bt1.setClickedListener(new Component.ClickedListener() { + @Override + public void onClick(Component component) { + present(new LastAbilitySlice(), new Intent()); + } + }); + } + + @Override + public void onActive() { + super.onActive(); + } + + @Override + public void onForeground(Intent intent) { + super.onForeground(intent); + } +} diff --git a/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/java/com/example/first_project/slice/NextAbilitySlice.java b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/java/com/example/first_project/slice/NextAbilitySlice.java new file mode 100644 index 0000000..51d41f6 --- /dev/null +++ b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/java/com/example/first_project/slice/NextAbilitySlice.java @@ -0,0 +1,13 @@ +package com.example.first_project.slice; + +import com.example.first_project.ResourceTable; +import ohos.aafwk.ability.AbilitySlice; +import ohos.aafwk.content.Intent; + +public class NextAbilitySlice extends AbilitySlice { + @Override + public void onStart(Intent intent) { + super.onStart(intent); + super.setUIContent(ResourceTable.Layout_ability_second); + } +} diff --git a/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/element/string.json b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/element/string.json new file mode 100644 index 0000000..c2a6b66 --- /dev/null +++ b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/element/string.json @@ -0,0 +1,16 @@ +{ + "string": [ + { + "name": "entry_MainAbility", + "value": "entry_MainAbility" + }, + { + "name": "mainability_description", + "value": "Java_Empty Ability" + }, + { + "name": "mainability_HelloWorld", + "value": "Hello World" + } + ] +} \ No newline at end of file diff --git a/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/graphic/background_ability_main.xml b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/graphic/background_ability_main.xml new file mode 100644 index 0000000..9b029f4 --- /dev/null +++ b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/graphic/background_ability_main.xml @@ -0,0 +1,7 @@ + + + + + \ No newline at end of file diff --git a/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/graphic/btn_curve1.xml b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/graphic/btn_curve1.xml new file mode 100644 index 0000000..bb99dcb --- /dev/null +++ b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/graphic/btn_curve1.xml @@ -0,0 +1,14 @@ + + + + + + \ No newline at end of file diff --git a/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/graphic/btn_curve2.xml b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/graphic/btn_curve2.xml new file mode 100644 index 0000000..2590fde --- /dev/null +++ b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/graphic/btn_curve2.xml @@ -0,0 +1,15 @@ + + + + + + \ No newline at end of file diff --git a/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/graphic/button.xml b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/graphic/button.xml new file mode 100644 index 0000000..a55a91a --- /dev/null +++ b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/graphic/button.xml @@ -0,0 +1,17 @@ + + + + + + \ No newline at end of file diff --git a/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/graphic/button1.xml b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/graphic/button1.xml new file mode 100644 index 0000000..e21f9aa --- /dev/null +++ b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/graphic/button1.xml @@ -0,0 +1,17 @@ + + + + + + \ No newline at end of file diff --git a/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/graphic/button_home.xml b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/graphic/button_home.xml new file mode 100644 index 0000000..819f587 --- /dev/null +++ b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/graphic/button_home.xml @@ -0,0 +1,17 @@ + + + + + + \ No newline at end of file diff --git a/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/graphic/txt_curve1.xml b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/graphic/txt_curve1.xml new file mode 100644 index 0000000..ad9a596 --- /dev/null +++ b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/graphic/txt_curve1.xml @@ -0,0 +1,14 @@ + + + + + + \ No newline at end of file diff --git a/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/graphic/txt_curve2.xml b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/graphic/txt_curve2.xml new file mode 100644 index 0000000..f056a03 --- /dev/null +++ b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/graphic/txt_curve2.xml @@ -0,0 +1,17 @@ + + + + + + \ No newline at end of file diff --git a/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/layout/ability_main.xml b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/layout/ability_main.xml new file mode 100644 index 0000000..3196e4e --- /dev/null +++ b/UI_Components_and_Layouts/Sai Charan B M_VIT-AP/First_project/entry/src/main/resources/base/layout/ability_main.xml @@ -0,0 +1,221 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +