diff --git a/README.md b/README.md new file mode 100644 index 0000000..eaffadd --- /dev/null +++ b/README.md @@ -0,0 +1,32 @@ +# Assigment_1 +## Layout-1 +UI/UX components + + +![Screenshot 2021-10-10 174458](https://user-images.githubusercontent.com/72146802/136695333-fd05bb40-c908-45f2-922f-f3c96aafcf40.png) + +## Layout-2 +UI/UX components + +![Screenshot 2021-10-10 175041](https://user-images.githubusercontent.com/72146802/136695402-7a4ffde7-6bdd-4745-a032-b3514332139e.png) + +## Layout-3 +UI/UX components + +![image](https://user-images.githubusercontent.com/72146802/136695436-624cdb41-994d-45d3-8072-d5ff05a6500b.png) + +# Assignment_Database +Database/Dialogues + + + + +https://user-images.githubusercontent.com/72146802/136695770-51d2d41b-15cf-4dcb-b0ed-97ed777ee41c.mp4 + + +# Layout-1 +![Screenshot 2021-10-10 180306](https://user-images.githubusercontent.com/72146802/136695836-b34c9a30-c590-456d-941d-758352f4a3b5.png) +# Layout-2 +![Screenshot 2021-10-10 180406](https://user-images.githubusercontent.com/72146802/136695869-eec0f47c-97ba-495b-8fc0-2f2c141d005c.png) +# Layout-3 +![Screenshot 2021-10-10 180513](https://user-images.githubusercontent.com/72146802/136695901-cd8ba12b-65eb-4134-9f6e-ed6509c37599.png) diff --git a/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/.gitignore b/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/.gitignore new file mode 100644 index 0000000..37a4eb8 --- /dev/null +++ b/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/.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/Yash_Daga_VIT_AP/Assignment-1/.idea/.gitignore b/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/.idea/checkstyle-idea.xml b/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/.idea/checkstyle-idea.xml new file mode 100644 index 0000000..2f2c3c1 --- /dev/null +++ b/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/.idea/checkstyle-idea.xml @@ -0,0 +1,16 @@ + + + + + + \ No newline at end of file diff --git a/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/.idea/compiler.xml b/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/.idea/compiler.xml new file mode 100644 index 0000000..61a9130 --- /dev/null +++ b/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/.idea/compiler.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/.idea/gradle.xml b/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/.idea/gradle.xml new file mode 100644 index 0000000..82c453f --- /dev/null +++ b/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/.idea/gradle.xml @@ -0,0 +1,22 @@ + + + + + + + \ No newline at end of file diff --git a/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/.idea/jarRepositories.xml b/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/.idea/jarRepositories.xml new file mode 100644 index 0000000..1dfcd02 --- /dev/null +++ b/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/.idea/jarRepositories.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/.idea/misc.xml b/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/.idea/misc.xml new file mode 100644 index 0000000..58918f5 --- /dev/null +++ b/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/.idea/misc.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/.idea/previewer/phone/phoneSettingConfig_1729642744.json b/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/.idea/previewer/phone/phoneSettingConfig_1729642744.json new file mode 100644 index 0000000..69beee7 --- /dev/null +++ b/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/.idea/previewer/phone/phoneSettingConfig_1729642744.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/Yash_Daga_VIT_AP/Assignment-1/.idea/previewer/previewConfig.json b/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/.idea/previewer/previewConfig.json new file mode 100644 index 0000000..898ebbc --- /dev/null +++ b/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/.idea/previewer/previewConfig.json @@ -0,0 +1,9 @@ +{ + "1.0.0": { + "LastPreviewDevice": { + "C:\\Users\\dagay\\DevEcoStudioProjects\\Mystery\\entry": [ + "phone" + ] + } + } +} \ No newline at end of file diff --git a/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/Mystery.zip b/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/Mystery.zip new file mode 100644 index 0000000..cf5949a Binary files /dev/null and b/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/Mystery.zip differ diff --git a/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/build.gradle b/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/build.gradle new file mode 100644 index 0000000..29cfcd9 --- /dev/null +++ b/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/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 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' + } +} + +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/Yash_Daga_VIT_AP/Assignment-1/entry/.gitignore b/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/entry/.gitignore new file mode 100644 index 0000000..796b96d --- /dev/null +++ b/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/entry/.gitignore @@ -0,0 +1 @@ +/build diff --git a/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/entry/build.gradle b/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/entry/build.gradle new file mode 100644 index 0000000..b34f366 --- /dev/null +++ b/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/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/Yash_Daga_VIT_AP/Assignment-1/entry/proguard-rules.pro b/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/entry/proguard-rules.pro new file mode 100644 index 0000000..f7666e4 --- /dev/null +++ b/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/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/Yash_Daga_VIT_AP/Assignment-1/entry/src/main/config.json b/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/entry/src/main/config.json new file mode 100644 index 0000000..aa52ed5 --- /dev/null +++ b/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/entry/src/main/config.json @@ -0,0 +1,46 @@ +{ + "app": { + "bundleName": "com.example.mystery", + "vendor": "example", + "version": { + "code": 1000000, + "name": "1.0.0" + } + }, + "deviceConfig": {}, + "module": { + "package": "com.example.mystery", + "name": ".MyApplication", + "mainAbility": "com.example.mystery.MainAbility", + "deviceType": [ + "phone" + ], + "distro": { + "deliveryWithInstall": true, + "moduleName": "entry", + "moduleType": "entry", + "installationFree": true + }, + "abilities": [ + { + "skills": [ + { + "entities": [ + "entity.system.home" + ], + "actions": [ + "action.system.home" + ] + } + ], + "orientation": "unspecified", + "name": "com.example.mystery.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/Yash_Daga_VIT_AP/Assignment-1/entry/src/main/java/com/example/mystery/MainAbility.java b/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/entry/src/main/java/com/example/mystery/MainAbility.java new file mode 100644 index 0000000..72c9392 --- /dev/null +++ b/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/entry/src/main/java/com/example/mystery/MainAbility.java @@ -0,0 +1,13 @@ +package com.example.mystery; + +import com.example.mystery.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/Yash_Daga_VIT_AP/Assignment-1/entry/src/main/java/com/example/mystery/MyApplication.java b/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/entry/src/main/java/com/example/mystery/MyApplication.java new file mode 100644 index 0000000..7ea8134 --- /dev/null +++ b/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/entry/src/main/java/com/example/mystery/MyApplication.java @@ -0,0 +1,10 @@ +package com.example.mystery; + +import ohos.aafwk.ability.AbilityPackage; + +public class MyApplication extends AbilityPackage { + @Override + public void onInitialize() { + super.onInitialize(); + } +} diff --git a/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/entry/src/main/java/com/example/mystery/slice/MainAbilitySlice.java b/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/entry/src/main/java/com/example/mystery/slice/MainAbilitySlice.java new file mode 100644 index 0000000..2f67219 --- /dev/null +++ b/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/entry/src/main/java/com/example/mystery/slice/MainAbilitySlice.java @@ -0,0 +1,23 @@ +package com.example.mystery.slice; + +import com.example.mystery.ResourceTable; +import ohos.aafwk.ability.AbilitySlice; +import ohos.aafwk.content.Intent; + +public class MainAbilitySlice extends AbilitySlice { + @Override + public void onStart(Intent intent) { + super.onStart(intent); + super.setUIContent(ResourceTable.Layout_ability_main); + } + + @Override + public void onActive() { + super.onActive(); + } + + @Override + public void onForeground(Intent intent) { + super.onForeground(intent); + } +} diff --git a/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/entry/src/main/resources/base/element/string.json b/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/entry/src/main/resources/base/element/string.json new file mode 100644 index 0000000..c2a6b66 --- /dev/null +++ b/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/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/Yash_Daga_VIT_AP/Assignment-1/entry/src/main/resources/base/graphic/background_ability_main.xml b/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/entry/src/main/resources/base/graphic/background_ability_main.xml new file mode 100644 index 0000000..2519ce1 --- /dev/null +++ b/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/entry/src/main/resources/base/graphic/background_ability_main.xml @@ -0,0 +1,9 @@ + + + + ohos:hint_color="#A8FFF" + + ohos:hint_color="$color:black" + \ No newline at end of file diff --git a/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/entry/src/main/resources/base/layout/ability_main.xml b/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/entry/src/main/resources/base/layout/ability_main.xml new file mode 100644 index 0000000..c2fa2fa --- /dev/null +++ b/UI_Components_and_Layouts/Yash_Daga_VIT_AP/Assignment-1/entry/src/main/resources/base/layout/ability_main.xml @@ -0,0 +1,91 @@ + + + +