diff --git a/DevhubEntry/.gitignore b/DevhubEntry/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..aa724b77071afcbd9bb398053e05adaf7ac9405a --- /dev/null +++ b/DevhubEntry/.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 +.cxx +local.properties diff --git a/DevhubEntry/app/.gitignore b/DevhubEntry/app/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..42afabfd2abebf31384ca7797186a27a4b7dbee8 --- /dev/null +++ b/DevhubEntry/app/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/DevhubEntry/app/build.gradle b/DevhubEntry/app/build.gradle new file mode 100644 index 0000000000000000000000000000000000000000..fe9c2d57c3346dba981f818c0e51a5017d902ef9 --- /dev/null +++ b/DevhubEntry/app/build.gradle @@ -0,0 +1,38 @@ +plugins { + id 'com.android.application' +} + +android { + compileSdkVersion 30 + buildToolsVersion "30.0.3" + + defaultConfig { + applicationId "com.example.devhubentry" + minSdkVersion 25 + targetSdkVersion 30 + versionCode 1 + versionName "1.0" + + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + } + + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + } + } + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } +} + +dependencies { + + implementation 'androidx.appcompat:appcompat:1.1.0' + implementation 'com.google.android.material:material:1.1.0' + testImplementation 'junit:junit:4.+' + androidTestImplementation 'androidx.test.ext:junit:1.1.1' + androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' +} \ No newline at end of file diff --git a/DevhubEntry/app/proguard-rules.pro b/DevhubEntry/app/proguard-rules.pro new file mode 100644 index 0000000000000000000000000000000000000000..481bb434814107eb79d7a30b676d344b0df2f8ce --- /dev/null +++ b/DevhubEntry/app/proguard-rules.pro @@ -0,0 +1,21 @@ +# Add project specific ProGuard rules here. +# You can control the set of applied configuration files using the +# proguardFiles setting in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile \ No newline at end of file diff --git a/DevhubEntry/app/src/androidTest/java/com/example/devhubentry/ExampleInstrumentedTest.java b/DevhubEntry/app/src/androidTest/java/com/example/devhubentry/ExampleInstrumentedTest.java new file mode 100644 index 0000000000000000000000000000000000000000..e287b47332e1c5b62c93ad0f545fef033f080b0c --- /dev/null +++ b/DevhubEntry/app/src/androidTest/java/com/example/devhubentry/ExampleInstrumentedTest.java @@ -0,0 +1,26 @@ +package com.example.devhubentry; + +import android.content.Context; + +import androidx.test.platform.app.InstrumentationRegistry; +import androidx.test.ext.junit.runners.AndroidJUnit4; + +import org.junit.Test; +import org.junit.runner.RunWith; + +import static org.junit.Assert.*; + +/** + * Instrumented test, which will execute on an Android device. + * + * @see Testing documentation + */ +@RunWith(AndroidJUnit4.class) +public class ExampleInstrumentedTest { + @Test + public void useAppContext() { + // Context of the app under test. + Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); + assertEquals("com.example.devhubentry", appContext.getPackageName()); + } +} \ No newline at end of file diff --git a/DevhubEntry/app/src/main/AndroidManifest.xml b/DevhubEntry/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000000000000000000000000000000000000..9050093d947ad9f20c18e6ab927d7ca4095ae8df --- /dev/null +++ b/DevhubEntry/app/src/main/AndroidManifest.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/DevhubEntry/app/src/main/java/com/example/devhubentry/MainActivity.java b/DevhubEntry/app/src/main/java/com/example/devhubentry/MainActivity.java new file mode 100644 index 0000000000000000000000000000000000000000..f1b043b9e6cf294c3fa3e72f94a17f3c1a2c38c4 --- /dev/null +++ b/DevhubEntry/app/src/main/java/com/example/devhubentry/MainActivity.java @@ -0,0 +1,33 @@ +package com.example.devhubentry; + +import android.app.Activity; +import android.graphics.drawable.Drawable; +import android.os.Bundle; +import android.widget.EditText; + + +public class MainActivity extends Activity { + EditText userName; + EditText passwdInput; + Drawable userIcon; + Drawable lockIcon; + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + userName=findViewById(R.id.userInput); + passwdInput=findViewById(R.id.passwdInput); + userIcon=userName.getCompoundDrawables()[0]; + if(userIcon!=null){ + userIcon.setBounds(20,0,75,60); + userName.setCompoundDrawables(userIcon, + userName.getCompoundDrawables()[1],userName.getCompoundDrawables()[2],userName.getCompoundDrawables()[3]); + } + lockIcon=passwdInput.getCompoundDrawables()[0]; + if(lockIcon!=null){ + lockIcon.setBounds(20,0,75,60); + passwdInput.setCompoundDrawables(lockIcon, + passwdInput.getCompoundDrawables()[1],passwdInput.getCompoundDrawables()[2],passwdInput.getCompoundDrawables()[3]); + } + } +} diff --git a/DevhubEntry/app/src/main/res/drawable-hdpi/bg.png b/DevhubEntry/app/src/main/res/drawable-hdpi/bg.png new file mode 100644 index 0000000000000000000000000000000000000000..5a11f5d606d6fd065433c4fdd7daf26333b63e6e Binary files /dev/null and b/DevhubEntry/app/src/main/res/drawable-hdpi/bg.png differ diff --git a/DevhubEntry/app/src/main/res/drawable-hdpi/img.png b/DevhubEntry/app/src/main/res/drawable-hdpi/img.png new file mode 100644 index 0000000000000000000000000000000000000000..dc4c81e120e2a92a2f6484b72157a7e206c6debe Binary files /dev/null and b/DevhubEntry/app/src/main/res/drawable-hdpi/img.png differ diff --git a/DevhubEntry/app/src/main/res/drawable-hdpi/lock_icon.png b/DevhubEntry/app/src/main/res/drawable-hdpi/lock_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..ce9a3122da4a2193b9e8d9bcdcd0229f3ea1e68a Binary files /dev/null and b/DevhubEntry/app/src/main/res/drawable-hdpi/lock_icon.png differ diff --git a/DevhubEntry/app/src/main/res/drawable-hdpi/user_icno.png b/DevhubEntry/app/src/main/res/drawable-hdpi/user_icno.png new file mode 100644 index 0000000000000000000000000000000000000000..def107a5107d486cd68b9cfd3f40499181dcb14c Binary files /dev/null and b/DevhubEntry/app/src/main/res/drawable-hdpi/user_icno.png differ diff --git a/DevhubEntry/app/src/main/res/drawable-ldpi/bg.png b/DevhubEntry/app/src/main/res/drawable-ldpi/bg.png new file mode 100644 index 0000000000000000000000000000000000000000..312ef9fa1c373ad4c92ca2648f78bbb161e443da Binary files /dev/null and b/DevhubEntry/app/src/main/res/drawable-ldpi/bg.png differ diff --git a/DevhubEntry/app/src/main/res/drawable-ldpi/img.png b/DevhubEntry/app/src/main/res/drawable-ldpi/img.png new file mode 100644 index 0000000000000000000000000000000000000000..2d78d83681b91e195e63e7edfe811a4318bbcdcf Binary files /dev/null and b/DevhubEntry/app/src/main/res/drawable-ldpi/img.png differ diff --git a/DevhubEntry/app/src/main/res/drawable-ldpi/lock_icon.png b/DevhubEntry/app/src/main/res/drawable-ldpi/lock_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..df5e72cfd3f20ad154f277a8d9a6e70286434cd1 Binary files /dev/null and b/DevhubEntry/app/src/main/res/drawable-ldpi/lock_icon.png differ diff --git a/DevhubEntry/app/src/main/res/drawable-ldpi/user_icno.png b/DevhubEntry/app/src/main/res/drawable-ldpi/user_icno.png new file mode 100644 index 0000000000000000000000000000000000000000..1f49fe5e9c43190f284dc56da803246865311d5d Binary files /dev/null and b/DevhubEntry/app/src/main/res/drawable-ldpi/user_icno.png differ diff --git a/DevhubEntry/app/src/main/res/drawable-mdpi/bg.png b/DevhubEntry/app/src/main/res/drawable-mdpi/bg.png new file mode 100644 index 0000000000000000000000000000000000000000..3d6047cd959f0a8b0db94f823a933e4a6b67d372 Binary files /dev/null and b/DevhubEntry/app/src/main/res/drawable-mdpi/bg.png differ diff --git a/DevhubEntry/app/src/main/res/drawable-mdpi/img.png b/DevhubEntry/app/src/main/res/drawable-mdpi/img.png new file mode 100644 index 0000000000000000000000000000000000000000..62856e5b5e94e113499681b64e4e705fdee80e77 Binary files /dev/null and b/DevhubEntry/app/src/main/res/drawable-mdpi/img.png differ diff --git a/DevhubEntry/app/src/main/res/drawable-mdpi/lock_icon.png b/DevhubEntry/app/src/main/res/drawable-mdpi/lock_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..eb5634611636fa90fd865aee08013eda87ef5b5c Binary files /dev/null and b/DevhubEntry/app/src/main/res/drawable-mdpi/lock_icon.png differ diff --git a/DevhubEntry/app/src/main/res/drawable-mdpi/user_icno.png b/DevhubEntry/app/src/main/res/drawable-mdpi/user_icno.png new file mode 100644 index 0000000000000000000000000000000000000000..c32cb2a5b72a149abf1c79d610734289ccbe4d2b Binary files /dev/null and b/DevhubEntry/app/src/main/res/drawable-mdpi/user_icno.png differ diff --git a/DevhubEntry/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/DevhubEntry/app/src/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 0000000000000000000000000000000000000000..2b068d11462a4b96669193de13a711a3a36220a0 --- /dev/null +++ b/DevhubEntry/app/src/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/DevhubEntry/app/src/main/res/drawable-xhdpi/bg.png b/DevhubEntry/app/src/main/res/drawable-xhdpi/bg.png new file mode 100644 index 0000000000000000000000000000000000000000..5e049fb08c6a7d46ff0919d1560dbb5f5fca3adb Binary files /dev/null and b/DevhubEntry/app/src/main/res/drawable-xhdpi/bg.png differ diff --git a/DevhubEntry/app/src/main/res/drawable-xhdpi/img.png b/DevhubEntry/app/src/main/res/drawable-xhdpi/img.png new file mode 100644 index 0000000000000000000000000000000000000000..91dc07f58828c52202ca7481374ef9c1102ccee3 Binary files /dev/null and b/DevhubEntry/app/src/main/res/drawable-xhdpi/img.png differ diff --git a/DevhubEntry/app/src/main/res/drawable-xhdpi/lock_icon.png b/DevhubEntry/app/src/main/res/drawable-xhdpi/lock_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..58f313b21887b57574aaa030e6fc482fbde1dd10 Binary files /dev/null and b/DevhubEntry/app/src/main/res/drawable-xhdpi/lock_icon.png differ diff --git a/DevhubEntry/app/src/main/res/drawable-xhdpi/user_icno.png b/DevhubEntry/app/src/main/res/drawable-xhdpi/user_icno.png new file mode 100644 index 0000000000000000000000000000000000000000..d6ed062dad959dff01b312ebfdf58c08b7930577 Binary files /dev/null and b/DevhubEntry/app/src/main/res/drawable-xhdpi/user_icno.png differ diff --git a/DevhubEntry/app/src/main/res/drawable-xxhdpi/bg.png b/DevhubEntry/app/src/main/res/drawable-xxhdpi/bg.png new file mode 100644 index 0000000000000000000000000000000000000000..4a9eb6590e1b87ae6f722c23c6ebe0e63119ebe4 Binary files /dev/null and b/DevhubEntry/app/src/main/res/drawable-xxhdpi/bg.png differ diff --git a/DevhubEntry/app/src/main/res/drawable-xxhdpi/img.png b/DevhubEntry/app/src/main/res/drawable-xxhdpi/img.png new file mode 100644 index 0000000000000000000000000000000000000000..e63a1a1e61eb77b463d068d1b8546782e2083edd Binary files /dev/null and b/DevhubEntry/app/src/main/res/drawable-xxhdpi/img.png differ diff --git a/DevhubEntry/app/src/main/res/drawable-xxhdpi/lock_icon.png b/DevhubEntry/app/src/main/res/drawable-xxhdpi/lock_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..20af5a09c1c365f6bd30e2d96bbf645f9f79184a Binary files /dev/null and b/DevhubEntry/app/src/main/res/drawable-xxhdpi/lock_icon.png differ diff --git a/DevhubEntry/app/src/main/res/drawable-xxhdpi/user_icno.png b/DevhubEntry/app/src/main/res/drawable-xxhdpi/user_icno.png new file mode 100644 index 0000000000000000000000000000000000000000..3bc9af9ad579c880b734f3923cfe600aacdaddf6 Binary files /dev/null and b/DevhubEntry/app/src/main/res/drawable-xxhdpi/user_icno.png differ diff --git a/DevhubEntry/app/src/main/res/drawable-xxxhdpi/bg.png b/DevhubEntry/app/src/main/res/drawable-xxxhdpi/bg.png new file mode 100644 index 0000000000000000000000000000000000000000..f08196688b19c49a4e32f7fe5afe07612cefd657 Binary files /dev/null and b/DevhubEntry/app/src/main/res/drawable-xxxhdpi/bg.png differ diff --git a/DevhubEntry/app/src/main/res/drawable-xxxhdpi/img.png b/DevhubEntry/app/src/main/res/drawable-xxxhdpi/img.png new file mode 100644 index 0000000000000000000000000000000000000000..19f219102e5fd78db42a684648420d0b5cd98ea4 Binary files /dev/null and b/DevhubEntry/app/src/main/res/drawable-xxxhdpi/img.png differ diff --git a/DevhubEntry/app/src/main/res/drawable-xxxhdpi/lock_icon.png b/DevhubEntry/app/src/main/res/drawable-xxxhdpi/lock_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..7e5aa283952f34446f7b4bf2efadb3ec445677b8 Binary files /dev/null and b/DevhubEntry/app/src/main/res/drawable-xxxhdpi/lock_icon.png differ diff --git a/DevhubEntry/app/src/main/res/drawable-xxxhdpi/user_icno.png b/DevhubEntry/app/src/main/res/drawable-xxxhdpi/user_icno.png new file mode 100644 index 0000000000000000000000000000000000000000..a92cfc65ceed04ffa33d8b115f7ac717eeeb5b95 Binary files /dev/null and b/DevhubEntry/app/src/main/res/drawable-xxxhdpi/user_icno.png differ diff --git a/DevhubEntry/app/src/main/res/drawable/edit_rect.xml b/DevhubEntry/app/src/main/res/drawable/edit_rect.xml new file mode 100644 index 0000000000000000000000000000000000000000..aa78e73e2b1af59ee81a6ba395baab5f0f817986 --- /dev/null +++ b/DevhubEntry/app/src/main/res/drawable/edit_rect.xml @@ -0,0 +1,17 @@ + + + + + + + + + + \ No newline at end of file diff --git a/DevhubEntry/app/src/main/res/drawable/ic_launcher_background.xml b/DevhubEntry/app/src/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 0000000000000000000000000000000000000000..07d5da9cbf141911847041df5d7b87f0dd5ef9d4 --- /dev/null +++ b/DevhubEntry/app/src/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/DevhubEntry/app/src/main/res/layout/activity_main.xml b/DevhubEntry/app/src/main/res/layout/activity_main.xml new file mode 100644 index 0000000000000000000000000000000000000000..7a352cc5880f2fbe03f601239d65174cfd01c44c --- /dev/null +++ b/DevhubEntry/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,107 @@ + + + + + + + + + + + + + + + +