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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +