diff --git a/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/.gitignore b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/.gitignore new file mode 100644 index 0000000..37a4eb8 --- /dev/null +++ b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/.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/Vidya Akbar/AssignmentApp/.idea/.gitignore b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/.idea/checkstyle-idea.xml b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/.idea/checkstyle-idea.xml new file mode 100644 index 0000000..2f2c3c1 --- /dev/null +++ b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/.idea/checkstyle-idea.xml @@ -0,0 +1,16 @@ + + + + + + \ No newline at end of file diff --git a/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/.idea/compiler.xml b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/.idea/compiler.xml new file mode 100644 index 0000000..61a9130 --- /dev/null +++ b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/.idea/compiler.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/.idea/gradle.xml b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/.idea/gradle.xml new file mode 100644 index 0000000..82c453f --- /dev/null +++ b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/.idea/gradle.xml @@ -0,0 +1,22 @@ + + + + + + + \ No newline at end of file diff --git a/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/.idea/jarRepositories.xml b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/.idea/jarRepositories.xml new file mode 100644 index 0000000..1dfcd02 --- /dev/null +++ b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/.idea/jarRepositories.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/.idea/misc.xml b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/.idea/misc.xml new file mode 100644 index 0000000..58918f5 --- /dev/null +++ b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/.idea/misc.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/.idea/previewer/phone/phoneSettingConfig_-826963531.json b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/.idea/previewer/phone/phoneSettingConfig_-826963531.json new file mode 100644 index 0000000..69beee7 --- /dev/null +++ b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/.idea/previewer/phone/phoneSettingConfig_-826963531.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/Vidya Akbar/AssignmentApp/.idea/previewer/previewConfig.json b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/.idea/previewer/previewConfig.json new file mode 100644 index 0000000..ce961fc --- /dev/null +++ b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/.idea/previewer/previewConfig.json @@ -0,0 +1,11 @@ +{ + "1.0.0": { + "LastPreviewDevice": { + "C:\\Users\\hp\\DevEcoStudioProjects\\AssignmentApp\\entry": [ + "phone", + "tablet", + "tv" + ] + } + } +} \ No newline at end of file diff --git a/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/.idea/previewer/tablet/tabletSettingConfig_-826963531.json b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/.idea/previewer/tablet/tabletSettingConfig_-826963531.json new file mode 100644 index 0000000..278b671 --- /dev/null +++ b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/.idea/previewer/tablet/tabletSettingConfig_-826963531.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/Vidya Akbar/AssignmentApp/.idea/previewer/tv/tvSettingConfig_-826963531.json b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/.idea/previewer/tv/tvSettingConfig_-826963531.json new file mode 100644 index 0000000..4b98516 --- /dev/null +++ b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/.idea/previewer/tv/tvSettingConfig_-826963531.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/Vidya Akbar/AssignmentApp/MyFirstApplication/.gitignore b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/.gitignore new file mode 100644 index 0000000..37a4eb8 --- /dev/null +++ b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/.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/Vidya Akbar/AssignmentApp/MyFirstApplication/.idea/.gitignore b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/.idea/checkstyle-idea.xml b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/.idea/checkstyle-idea.xml new file mode 100644 index 0000000..55fb475 --- /dev/null +++ b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/.idea/checkstyle-idea.xml @@ -0,0 +1,19 @@ + + + + + + \ No newline at end of file diff --git a/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/.idea/checkstyleidea-libs/readme.txt b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/.idea/checkstyleidea-libs/readme.txt new file mode 100644 index 0000000..05dae55 --- /dev/null +++ b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/.idea/checkstyleidea-libs/readme.txt @@ -0,0 +1,6 @@ +This folder contains libraries copied from the "MyFirstApplication" project. +It is managed by the CheckStyle-IDEA IDE plugin. +Do not modify this folder while the IDE is running. +When the IDE is stopped, you may delete this folder at any time. It will be recreated as needed. +In order to prevent the CheckStyle-IDEA IDE plugin from creating this folder, +uncheck the "Copy libraries from project directory" option in the CheckStyle-IDEA settings dialog. diff --git a/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/.idea/compiler.xml b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/.idea/compiler.xml new file mode 100644 index 0000000..61a9130 --- /dev/null +++ b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/.idea/compiler.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/.idea/gradle.xml b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/.idea/gradle.xml new file mode 100644 index 0000000..82c453f --- /dev/null +++ b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/.idea/gradle.xml @@ -0,0 +1,22 @@ + + + + + + + \ No newline at end of file diff --git a/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/.idea/jarRepositories.xml b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/.idea/jarRepositories.xml new file mode 100644 index 0000000..1dfcd02 --- /dev/null +++ b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/.idea/jarRepositories.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/.idea/misc.xml b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/.idea/misc.xml new file mode 100644 index 0000000..58918f5 --- /dev/null +++ b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/.idea/misc.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/.idea/previewer/phone/phoneSettingConfig_-1369124169.json b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/.idea/previewer/phone/phoneSettingConfig_-1369124169.json new file mode 100644 index 0000000..69beee7 --- /dev/null +++ b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/.idea/previewer/phone/phoneSettingConfig_-1369124169.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/Vidya Akbar/AssignmentApp/MyFirstApplication/.idea/previewer/previewConfig.json b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/.idea/previewer/previewConfig.json new file mode 100644 index 0000000..c2d14ff --- /dev/null +++ b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/.idea/previewer/previewConfig.json @@ -0,0 +1,9 @@ +{ + "1.0.0": { + "LastPreviewDevice": { + "C:\\Users\\hp\\DevEcoStudioProjects\\MyFirstApplication\\entry": [ + "phone" + ] + } + } +} \ No newline at end of file diff --git a/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/.idea/previewer/tv/tvSettingConfig_-1369124169.json b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/.idea/previewer/tv/tvSettingConfig_-1369124169.json new file mode 100644 index 0000000..bc405b4 --- /dev/null +++ b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/.idea/previewer/tv/tvSettingConfig_-1369124169.json @@ -0,0 +1,25 @@ +{ + "setting": { + "1.0.1": { + "Language": { + "args": { + "Language": "en_US" + } + } + } + }, + "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/Vidya Akbar/AssignmentApp/MyFirstApplication/.idea/previewer/wearable/wearableSettingConfig_-1369124169.json b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/.idea/previewer/wearable/wearableSettingConfig_-1369124169.json new file mode 100644 index 0000000..58db4f7 --- /dev/null +++ b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/.idea/previewer/wearable/wearableSettingConfig_-1369124169.json @@ -0,0 +1,25 @@ +{ + "setting": { + "1.0.1": { + "Language": { + "args": { + "Language": "en_US" + } + } + } + }, + "frontend": { + "1.0.0": { + "Resolution": { + "args": { + "Resolution": "466*466" + } + }, + "DeviceType": { + "args": { + "DeviceType": "wearable" + } + } + } + } +} \ No newline at end of file diff --git a/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/build.gradle b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/build.gradle new file mode 100644 index 0000000..ad2c928 --- /dev/null +++ b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/build.gradle @@ -0,0 +1,53 @@ +// Top-level build file where you can add configuration options common to all sub-projects/modules. +apply plugin: 'com.huawei.ohos.app' +apply plugin: 'org.sonarqube' + + + + +//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 4 + } +} + +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' + classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.3" + } +} + +allprojects { + repositories { + maven { + url 'https://repo.huaweicloud.com/repository/maven/' + } + maven { + url 'https://developer.huawei.com/repo/' + } + jcenter() + } +} + +sonarqube { + properties { + property "sonar.projectKey", "MyApp_dev" + property "sonar.organization", "applibgroup" + property "sonar.host.url", "http://localhost:9050" + property "sonar.sources", "entry" + property "sonar.java.binaries", "entry/build" + } +} diff --git a/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/entry/.gitignore b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/entry/.gitignore new file mode 100644 index 0000000..796b96d --- /dev/null +++ b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/entry/.gitignore @@ -0,0 +1 @@ +/build diff --git a/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/entry/build.gradle b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/entry/build.gradle new file mode 100644 index 0000000..b34f366 --- /dev/null +++ b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/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 4 + } + 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/Vidya Akbar/AssignmentApp/MyFirstApplication/entry/proguard-rules.pro b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/entry/proguard-rules.pro new file mode 100644 index 0000000..f7666e4 --- /dev/null +++ b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/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/Vidya Akbar/AssignmentApp/MyFirstApplication/entry/src/main/config.json b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/entry/src/main/config.json new file mode 100644 index 0000000..1598719 --- /dev/null +++ b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/entry/src/main/config.json @@ -0,0 +1,46 @@ +{ + "app": { + "bundleName": "com.example.myfirstapplication", + "vendor": "example", + "version": { + "code": 1000000, + "name": "1.0.0" + } + }, + "deviceConfig": {}, + "module": { + "package": "com.example.myfirstapplication", + "name": ".MyApplication", + "mainAbility": "com.example.myfirstapplication.MainAbility", + "deviceType": [ + "phone","tv","wearable" + ], + "distro": { + "deliveryWithInstall": true, + "moduleName": "entry", + "moduleType": "entry", + "installationFree": true + }, + "abilities": [ + { + "skills": [ + { + "entities": [ + "entity.system.home" + ], + "actions": [ + "action.system.home" + ] + } + ], + "orientation": "unspecified", + "name": "com.example.myfirstapplication.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/Vidya Akbar/AssignmentApp/MyFirstApplication/entry/src/main/java/com/example/myfirstapplication/MainAbility.java b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/entry/src/main/java/com/example/myfirstapplication/MainAbility.java new file mode 100644 index 0000000..f1c3b0b --- /dev/null +++ b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/entry/src/main/java/com/example/myfirstapplication/MainAbility.java @@ -0,0 +1,13 @@ +package com.example.myfirstapplication; + +import com.example.myfirstapplication.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/Vidya Akbar/AssignmentApp/MyFirstApplication/entry/src/main/java/com/example/myfirstapplication/MyApplication.java b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/entry/src/main/java/com/example/myfirstapplication/MyApplication.java new file mode 100644 index 0000000..7070a8f --- /dev/null +++ b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/entry/src/main/java/com/example/myfirstapplication/MyApplication.java @@ -0,0 +1,10 @@ +package com.example.myfirstapplication; + +import ohos.aafwk.ability.AbilityPackage; + +public class MyApplication extends AbilityPackage { + @Override + public void onInitialize() { + super.onInitialize(); + } +} diff --git a/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/entry/src/main/java/com/example/myfirstapplication/slice/MainAbilitySlice.java b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/entry/src/main/java/com/example/myfirstapplication/slice/MainAbilitySlice.java new file mode 100644 index 0000000..0b5d0b5 --- /dev/null +++ b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/entry/src/main/java/com/example/myfirstapplication/slice/MainAbilitySlice.java @@ -0,0 +1,32 @@ +package com.example.myfirstapplication.slice; + + +import ohos.aafwk.ability.AbilitySlice; +import ohos.aafwk.content.Intent; +import ohos.agp.components.Button; +import com.example.myfirstapplication.ResourceTable; + +/** + * MainAbilitySlice. + */ +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_button_next); + + + bt.setClickedListener(list -> present(new NextAbilitySlice(), new Intent())); + } + + @Override + public void onActive() { + super.onActive(); + } + + @Override + public void onForeground(Intent intent) { + super.onForeground(intent); + } +} diff --git a/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/entry/src/main/java/com/example/myfirstapplication/slice/NextAbilitySlice.java b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/entry/src/main/java/com/example/myfirstapplication/slice/NextAbilitySlice.java new file mode 100644 index 0000000..5ebd8fe --- /dev/null +++ b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/entry/src/main/java/com/example/myfirstapplication/slice/NextAbilitySlice.java @@ -0,0 +1,19 @@ +package com.example.myfirstapplication.slice; + +import com.example.myfirstapplication.ResourceTable; +import ohos.aafwk.ability.AbilitySlice; +import ohos.aafwk.content.Intent; + + +public class NextAbilitySlice extends AbilitySlice { + @Override + protected void onStart(Intent intent) { + super.onStart(intent); + super.setUIContent(ResourceTable.Layout_ability_next); + + } + + + +} + diff --git a/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/entry/src/main/resources/base/element/string.json b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/entry/src/main/resources/base/element/string.json new file mode 100644 index 0000000..c2a6b66 --- /dev/null +++ b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/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/Vidya Akbar/AssignmentApp/MyFirstApplication/entry/src/main/resources/base/graphic/background_ability_main.xml b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/entry/src/main/resources/base/graphic/background_ability_main.xml new file mode 100644 index 0000000..c0c0a3d --- /dev/null +++ b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/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/Vidya Akbar/AssignmentApp/MyFirstApplication/entry/src/main/resources/base/layout/ability_main.xml b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/entry/src/main/resources/base/layout/ability_main.xml new file mode 100644 index 0000000..11c7256 --- /dev/null +++ b/UI_Components_and_Layouts/Vidya Akbar/AssignmentApp/MyFirstApplication/entry/src/main/resources/base/layout/ability_main.xml @@ -0,0 +1,35 @@ + + + + +