diff --git a/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.gradle/6.3/executionHistory/executionHistory.bin b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.gradle/6.3/executionHistory/executionHistory.bin new file mode 100644 index 0000000..0fed1e2 Binary files /dev/null and b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.gradle/6.3/executionHistory/executionHistory.bin differ diff --git a/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.gradle/6.3/executionHistory/executionHistory.lock b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.gradle/6.3/executionHistory/executionHistory.lock new file mode 100644 index 0000000..a059f9b Binary files /dev/null and b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.gradle/6.3/executionHistory/executionHistory.lock differ diff --git a/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.gradle/6.3/fileChanges/last-build.bin b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.gradle/6.3/fileChanges/last-build.bin new file mode 100644 index 0000000..f76dd23 Binary files /dev/null and b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.gradle/6.3/fileChanges/last-build.bin differ diff --git a/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.gradle/6.3/fileContent/fileContent.lock b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.gradle/6.3/fileContent/fileContent.lock new file mode 100644 index 0000000..f18c83e Binary files /dev/null and b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.gradle/6.3/fileContent/fileContent.lock differ diff --git a/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.gradle/6.3/fileHashes/fileHashes.bin b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.gradle/6.3/fileHashes/fileHashes.bin new file mode 100644 index 0000000..aead884 Binary files /dev/null and b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.gradle/6.3/fileHashes/fileHashes.bin differ diff --git a/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.gradle/6.3/fileHashes/fileHashes.lock b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.gradle/6.3/fileHashes/fileHashes.lock new file mode 100644 index 0000000..6df3102 Binary files /dev/null and b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.gradle/6.3/fileHashes/fileHashes.lock differ diff --git a/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.gradle/6.3/fileHashes/resourceHashesCache.bin b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.gradle/6.3/fileHashes/resourceHashesCache.bin new file mode 100644 index 0000000..4dd8629 Binary files /dev/null and b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.gradle/6.3/fileHashes/resourceHashesCache.bin differ diff --git a/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.gradle/6.3/gc.properties b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.gradle/6.3/gc.properties new file mode 100644 index 0000000..e69de29 diff --git a/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.gradle/6.3/javaCompile/classAnalysis.bin b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.gradle/6.3/javaCompile/classAnalysis.bin new file mode 100644 index 0000000..6e45d8f Binary files /dev/null and b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.gradle/6.3/javaCompile/classAnalysis.bin differ diff --git a/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.gradle/6.3/javaCompile/jarAnalysis.bin b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.gradle/6.3/javaCompile/jarAnalysis.bin new file mode 100644 index 0000000..83bdef4 Binary files /dev/null and b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.gradle/6.3/javaCompile/jarAnalysis.bin differ diff --git a/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.gradle/6.3/javaCompile/javaCompile.lock b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.gradle/6.3/javaCompile/javaCompile.lock new file mode 100644 index 0000000..edaf604 Binary files /dev/null and b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.gradle/6.3/javaCompile/javaCompile.lock differ diff --git a/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.gradle/6.3/javaCompile/taskHistory.bin b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.gradle/6.3/javaCompile/taskHistory.bin new file mode 100644 index 0000000..e26bd68 Binary files /dev/null and b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.gradle/6.3/javaCompile/taskHistory.bin differ diff --git a/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.gradle/buildOutputCleanup/buildOutputCleanup.lock new file mode 100644 index 0000000..652347e Binary files /dev/null and b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.gradle/buildOutputCleanup/buildOutputCleanup.lock differ diff --git a/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.gradle/buildOutputCleanup/cache.properties b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.gradle/buildOutputCleanup/cache.properties new file mode 100644 index 0000000..33411d8 --- /dev/null +++ b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.gradle/buildOutputCleanup/cache.properties @@ -0,0 +1,2 @@ +#Tue Sep 14 12:32:29 IST 2021 +gradle.version=6.3 diff --git a/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.gradle/buildOutputCleanup/outputFiles.bin b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.gradle/buildOutputCleanup/outputFiles.bin new file mode 100644 index 0000000..fdf2caa Binary files /dev/null and b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.gradle/buildOutputCleanup/outputFiles.bin differ diff --git a/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.gradle/checksums/checksums.lock b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.gradle/checksums/checksums.lock new file mode 100644 index 0000000..7e8e067 Binary files /dev/null and b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.gradle/checksums/checksums.lock differ diff --git a/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.gradle/vcs-1/gc.properties b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.gradle/vcs-1/gc.properties new file mode 100644 index 0000000..e69de29 diff --git a/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.idea/.gitignore b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.idea/caches/build_file_checksums.ser b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.idea/caches/build_file_checksums.ser new file mode 100644 index 0000000..cd22cd9 Binary files /dev/null and b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.idea/caches/build_file_checksums.ser differ diff --git a/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.idea/checkstyle-idea.xml b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.idea/checkstyle-idea.xml new file mode 100644 index 0000000..2f2c3c1 --- /dev/null +++ b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.idea/checkstyle-idea.xml @@ -0,0 +1,16 @@ + + + + + + \ No newline at end of file diff --git a/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.idea/compiler.xml b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.idea/compiler.xml new file mode 100644 index 0000000..61a9130 --- /dev/null +++ b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.idea/compiler.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.idea/gradle.xml b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.idea/gradle.xml new file mode 100644 index 0000000..82c453f --- /dev/null +++ b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.idea/gradle.xml @@ -0,0 +1,22 @@ + + + + + + + \ No newline at end of file diff --git a/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.idea/jarRepositories.xml b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.idea/jarRepositories.xml new file mode 100644 index 0000000..1dfcd02 --- /dev/null +++ b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.idea/jarRepositories.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.idea/libraries/Gradle__hamcrest_core_1_3.xml b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.idea/libraries/Gradle__hamcrest_core_1_3.xml new file mode 100644 index 0000000..a3cab89 --- /dev/null +++ b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.idea/libraries/Gradle__hamcrest_core_1_3.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.idea/libraries/Gradle__junit_4_13.xml b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.idea/libraries/Gradle__junit_4_13.xml new file mode 100644 index 0000000..c4afa00 --- /dev/null +++ b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.idea/libraries/Gradle__junit_4_13.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.idea/libraries/Gradle__runner_1_0_0_100.xml b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.idea/libraries/Gradle__runner_1_0_0_100.xml new file mode 100644 index 0000000..59de8bc --- /dev/null +++ b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.idea/libraries/Gradle__runner_1_0_0_100.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.idea/misc.xml b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.idea/misc.xml new file mode 100644 index 0000000..58918f5 --- /dev/null +++ b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.idea/misc.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.idea/modules.xml b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.idea/modules.xml new file mode 100644 index 0000000..ee767e0 --- /dev/null +++ b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.idea/modules.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.idea/modules/Intent_Assignment.iml b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.idea/modules/Intent_Assignment.iml new file mode 100644 index 0000000..f869bfb --- /dev/null +++ b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.idea/modules/Intent_Assignment.iml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.idea/modules/entry/entry.iml b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.idea/modules/entry/entry.iml new file mode 100644 index 0000000..c335bfe --- /dev/null +++ b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.idea/modules/entry/entry.iml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.idea/previewer/phone/phoneSettingConfig_-1732444508.json b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.idea/previewer/phone/phoneSettingConfig_-1732444508.json new file mode 100644 index 0000000..69beee7 --- /dev/null +++ b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.idea/previewer/phone/phoneSettingConfig_-1732444508.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/B B Priyanka/Intent_Assignment/.idea/previewer/previewConfig.json b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.idea/previewer/previewConfig.json new file mode 100644 index 0000000..34b66ca --- /dev/null +++ b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.idea/previewer/previewConfig.json @@ -0,0 +1,11 @@ +{ + "1.0.0": { + "LastPreviewDevice": { + "C:\\Users\\bbpri\\DevEcoStudioProjects\\Intent_Assignment\\entry": [ + "phone", + "tablet", + "tv" + ] + } + } +} \ No newline at end of file diff --git a/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.idea/previewer/tablet/tabletSettingConfig_-1732444508.json b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.idea/previewer/tablet/tabletSettingConfig_-1732444508.json new file mode 100644 index 0000000..278b671 --- /dev/null +++ b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.idea/previewer/tablet/tabletSettingConfig_-1732444508.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/B B Priyanka/Intent_Assignment/.idea/previewer/tv/tvSettingConfig_-1732444508.json b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.idea/previewer/tv/tvSettingConfig_-1732444508.json new file mode 100644 index 0000000..4b98516 --- /dev/null +++ b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/.idea/previewer/tv/tvSettingConfig_-1732444508.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/B B Priyanka/Intent_Assignment/build.gradle b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/build.gradle new file mode 100644 index 0000000..6606fa8 --- /dev/null +++ b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/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/B B Priyanka/Intent_Assignment/build/outputs/hap/debug/phone/entry-debug-rich-unsigned.hap b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/build/outputs/hap/debug/phone/entry-debug-rich-unsigned.hap new file mode 100644 index 0000000..eaa6ee5 Binary files /dev/null and b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/build/outputs/hap/debug/phone/entry-debug-rich-unsigned.hap differ diff --git a/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/build/outputs/hap/debug/tablet/entry-debug-rich-unsigned.hap b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/build/outputs/hap/debug/tablet/entry-debug-rich-unsigned.hap new file mode 100644 index 0000000..eaa6ee5 Binary files /dev/null and b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/build/outputs/hap/debug/tablet/entry-debug-rich-unsigned.hap differ diff --git a/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/build/outputs/hap/debug/tv/entry-debug-rich-unsigned.hap b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/build/outputs/hap/debug/tv/entry-debug-rich-unsigned.hap new file mode 100644 index 0000000..eaa6ee5 Binary files /dev/null and b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/build/outputs/hap/debug/tv/entry-debug-rich-unsigned.hap differ diff --git a/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/entry/.gitignore b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/entry/.gitignore new file mode 100644 index 0000000..796b96d --- /dev/null +++ b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/entry/.gitignore @@ -0,0 +1 @@ +/build diff --git a/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/entry/build.gradle b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/entry/build.gradle new file mode 100644 index 0000000..0e151f8 --- /dev/null +++ b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/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/B B Priyanka/Intent_Assignment/entry/proguard-rules.pro b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/entry/proguard-rules.pro new file mode 100644 index 0000000..f7666e4 --- /dev/null +++ b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/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/B B Priyanka/Intent_Assignment/entry/src/main/config.json b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/entry/src/main/config.json new file mode 100644 index 0000000..083351d --- /dev/null +++ b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/entry/src/main/config.json @@ -0,0 +1,57 @@ +{ + "app": { + "bundleName": "com.example.intent_assignment", + "vendor": "example", + "version": { + "code": 1000000, + "name": "1.0.0" + } + }, + "deviceConfig": {}, + "module": { + "package": "com.example.intent_assignment", + "name": ".MyApplication", + "mainAbility": "com.example.intent_assignment.MainAbility", + "deviceType": [ + "phone", + "tablet", + "tv" + ], + "distro": { + "deliveryWithInstall": true, + "moduleName": "entry", + "moduleType": "entry", + "installationFree": false + }, + "abilities": [ + { + "skills": [ + { + "entities": [ + "entity.system.home" + ], + "actions": [ + "action.system.home" + ] + } + ], + "orientation": "unspecified", + "name": "com.example.intent_assignment.MainAbility", + "icon": "$media:icon", + "description": "$string:mainability_description", + "label": "$string:entry_MainAbility", + "type": "page", + "launchType": "standard" + }, + { + "orientation": "unspecified", + "name": "com.example.intent_assignment.SecondAbility", + "icon": "$media:icon", + "description": "$string:secondability_description", + "label": "$string:entry_SecondAbility", + "type": "page", + "launchType": "standard" + } + ] + } +} \ No newline at end of file diff --git a/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/entry/src/main/java/com/example/intent_assignment/MainAbility.java b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/entry/src/main/java/com/example/intent_assignment/MainAbility.java new file mode 100644 index 0000000..40d38b6 --- /dev/null +++ b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/entry/src/main/java/com/example/intent_assignment/MainAbility.java @@ -0,0 +1,13 @@ +package com.example.intent_assignment; + +import com.example.intent_assignment.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/B B Priyanka/Intent_Assignment/entry/src/main/java/com/example/intent_assignment/MyApplication.java b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/entry/src/main/java/com/example/intent_assignment/MyApplication.java new file mode 100644 index 0000000..0e0d49f --- /dev/null +++ b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/entry/src/main/java/com/example/intent_assignment/MyApplication.java @@ -0,0 +1,10 @@ +package com.example.intent_assignment; + +import ohos.aafwk.ability.AbilityPackage; + +public class MyApplication extends AbilityPackage { + @Override + public void onInitialize() { + super.onInitialize(); + } +} diff --git a/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/entry/src/main/java/com/example/intent_assignment/SecondAbility.java b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/entry/src/main/java/com/example/intent_assignment/SecondAbility.java new file mode 100644 index 0000000..3f2a895 --- /dev/null +++ b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/entry/src/main/java/com/example/intent_assignment/SecondAbility.java @@ -0,0 +1,45 @@ +package com.example.intent_assignment; + + +import ohos.aafwk.ability.Ability; +import ohos.aafwk.ability.AbilitySlice; +import ohos.aafwk.content.Intent; +import ohos.agp.components.Text; + +public class SecondAbility extends Ability { + + Text userInfoName; + Text userInfoRoll; + Text userInfoUniversity; + Text userInfoDepartment; + + +// intent.setParam("user_info_name", user.getStudentName()); +// intent.setParam("user_info_roll", user.getRollNo()); +// intent.setParam("user_info_Department", user.getDepartmentName()); +// intent.setParam("user_info_college", user.getCollegeName()); +// intent.setParam("user_info_university", user.getUniversityName()); + + @Override + protected void onStart(Intent intent) { + super.onStart(intent); + super.setUIContent (ResourceTable.Layout_ability_next); + initViews (intent); + + } + + private void initViews (Intent intent) { + userInfoName = (Text) findComponentById(ResourceTable.Id_user_info_name); + userInfoRoll = (Text) findComponentById(ResourceTable.Id_user_info_roll); + userInfoUniversity = (Text) findComponentById(ResourceTable.Id_user_info_university); + userInfoDepartment = (Text) findComponentById(ResourceTable.Id_user_info_Department); + + if (intent != null) { + userInfoName.setText(intent.getStringParam("user_info_name")); + userInfoRoll.setText(intent.getStringParam("user_info_roll")); + userInfoUniversity.setText(intent.getStringParam("user_info_university")); + userInfoDepartment.setText(intent.getStringParam("user_info_Department")); + } + + } +} diff --git a/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/entry/src/main/java/com/example/intent_assignment/data/User.java b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/entry/src/main/java/com/example/intent_assignment/data/User.java new file mode 100644 index 0000000..e870c9d --- /dev/null +++ b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/entry/src/main/java/com/example/intent_assignment/data/User.java @@ -0,0 +1,53 @@ +package com.example.intent_assignment.data; + +import ohos.aafwk.content.Intent; + +public class User { + + + private String studentName; + + private String departmentName; + + private String collegeName; + + private String universityName; + + private String rollNo; + + public String getStudentName() { + return studentName; + } + + public void setStudentName(String studentName) { + this.studentName = studentName; + } + + public String getDepartmentName() { + return departmentName; + } + + public void setDepartmentName(String departmentName) { + this.departmentName = departmentName; + } + + public String getCollegeName() { + return collegeName; + } + + public void setCollegeName (String collegeName) { + this.collegeName = collegeName; + } + + public String getUniversityName() { return universityName; } + + public void setUniversityName (String universityName) { this.universityName = universityName;} + + public String getRollNo() { return rollNo; } + + public void setRollNo (String rollNo) { + this.rollNo=rollNo; + } + + +} \ No newline at end of file diff --git a/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/entry/src/main/java/com/example/intent_assignment/slice/MainAbilitySlice.java b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/entry/src/main/java/com/example/intent_assignment/slice/MainAbilitySlice.java new file mode 100644 index 0000000..aee46d8 --- /dev/null +++ b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/entry/src/main/java/com/example/intent_assignment/slice/MainAbilitySlice.java @@ -0,0 +1,109 @@ +package com.example.intent_assignment.slice; + +import com.example.intent_assignment.ResourceTable; +import com.example.intent_assignment.SecondAbility; +import com.example.intent_assignment.data.User; +import ohos.aafwk.ability.AbilitySlice; +import ohos.aafwk.content.Intent; +import ohos.agp.components.Button; +import ohos.agp.components.Component; +import ohos.agp.components.Text; +import ohos.agp.components.TextField; +import ohos.agp.window.dialog.ToastDialog; + +public class MainAbilitySlice extends AbilitySlice { + + private static String GENDER_MALE = "M"; + + private static String GENDER_FEMALE = "F"; + + private static int ROLLNO_LENGTH= 5; + + + private TextField studentName; + private TextField departmentName; + private TextField collegeName; + private TextField universityName; + private TextField rollNo; + + + private Text studentNameError; + private Text departmentNameError; + private Text collegeNameError; + private Text universityNameError; + private Text rollNoError; + private Button login; + + @Override + protected void onStart(Intent intent) { + super.onStart(intent); + super.setUIContent(ResourceTable.Layout_ability_main); + initViews(); + initListeners(); + } + + private void initViews(){ + studentName = (TextField) findComponentById(ResourceTable.Id_Name); + rollNo = (TextField) findComponentById(ResourceTable.Id_Rollno); + departmentName= (TextField) findComponentById(ResourceTable.Id_Department); + collegeName= (TextField) findComponentById(ResourceTable.Id_College); + universityName= (TextField) findComponentById(ResourceTable.Id_University); + login = (Button) findComponentById(ResourceTable.Id_button); + } + + private void initListeners() { + login.setClickedListener(component -> handleSubmitClick(component)); + } + + + public void handleSubmitClick(Component component) { + + ToastDialog toastDialog = new ToastDialog(component.getContext()); + + if (studentName.getText() == null + || rollNo.getText() == null + || departmentName.getText() == null + || collegeName.getText() == null + || universityName.getText() == null + || studentName.getText().isEmpty() + || rollNo.getText().isEmpty() + || departmentName.getText().isEmpty() + || collegeName.getText().isEmpty() + || universityName.getText().isEmpty()) { + + // toastDialog.setText(component.getContext().getString(Resource_Table)).show(); + + } else { + User user = new User(); + user.setStudentName(studentName.getText()); + user.setRollNo(rollNo.getText()); + user.setDepartmentName(departmentName.getText()); + user.setCollegeName(collegeName.getText()); + user.setUniversityName(universityName.getText()); + + Intent intent = new Intent(); + intent.setParam("user_info_name", user.getStudentName()); + intent.setParam("user_info_roll", user.getRollNo()); + intent.setParam("user_info_Department", user.getDepartmentName()); + intent.setParam("user_info_college", user.getCollegeName()); + intent.setParam("user_info_university", user.getUniversityName()); + startAbility(intent); + Intent.OperationBuilder operationBuilder = new Intent.OperationBuilder(); + operationBuilder.withDeviceId("") + .withAbilityName (SecondAbility.class.getName()) + .withBundleName (getBundleName()); + intent.setOperation (operationBuilder.build()); + startAbility(intent); + } + } + + @Override + public void onActive() { + super.onActive(); + } + + @Override + public void onForeground(Intent intent) { + super.onForeground(intent); + } +} diff --git a/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/entry/src/main/resources/base/element/string.json b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/entry/src/main/resources/base/element/string.json new file mode 100644 index 0000000..afc447b --- /dev/null +++ b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/entry/src/main/resources/base/element/string.json @@ -0,0 +1,28 @@ +{ + "string": [ + { + "name": "entry_MainAbility", + "value": "entry_MainAbility" + }, + { + "name": "mainability_description", + "value": "Java_Empty Ability" + }, + { + "name": "mainability_HelloWorld", + "value": "Hello World" + }, + { + "name": "secondability_description", + "value": "Java_Empty Ability" + }, + { + "name": "secondability_HelloWorld", + "value": "Hello World" + }, + { + "name": "entry_SecondAbility", + "value": "entry_SecondAbility" + } + ] +} \ No newline at end of file diff --git a/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/entry/src/main/resources/base/graphic/background_ability_main.xml b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/entry/src/main/resources/base/graphic/background_ability_main.xml new file mode 100644 index 0000000..c0c0a3d --- /dev/null +++ b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/entry/src/main/resources/base/graphic/background_ability_main.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/entry/src/main/resources/base/graphic/background_ability_second.xml b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/entry/src/main/resources/base/graphic/background_ability_second.xml new file mode 100644 index 0000000..a002c23 --- /dev/null +++ b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/entry/src/main/resources/base/graphic/background_ability_second.xml @@ -0,0 +1,8 @@ + + + + + \ No newline at end of file diff --git a/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/entry/src/main/resources/base/graphic/background_idcard.xml b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/entry/src/main/resources/base/graphic/background_idcard.xml new file mode 100644 index 0000000..8551f99 --- /dev/null +++ b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/entry/src/main/resources/base/graphic/background_idcard.xml @@ -0,0 +1,8 @@ + + + + + \ No newline at end of file diff --git a/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/entry/src/main/resources/base/graphic/ele_cursor_bubble.xml b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/entry/src/main/resources/base/graphic/ele_cursor_bubble.xml new file mode 100644 index 0000000..5b33bd8 --- /dev/null +++ b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/entry/src/main/resources/base/graphic/ele_cursor_bubble.xml @@ -0,0 +1,11 @@ + + + + + + \ No newline at end of file diff --git a/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/entry/src/main/resources/base/layout/ability_main.xml b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/entry/src/main/resources/base/layout/ability_main.xml new file mode 100644 index 0000000..b5e61bd --- /dev/null +++ b/UI_Components_and_Layouts/B B Priyanka/Intent_Assignment/entry/src/main/resources/base/layout/ability_main.xml @@ -0,0 +1,171 @@ + + + + + + + + + + + + + + + + + + + +