diff --git a/Login2/.gitignore b/Login2/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..aa724b77071afcbd9bb398053e05adaf7ac9405a --- /dev/null +++ b/Login2/.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/Login2/.idea/.gitignore b/Login2/.idea/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..26d33521af10bcc7fd8cea344038eaaeb78d0ef5 --- /dev/null +++ b/Login2/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/Login2/.idea/.name b/Login2/.idea/.name new file mode 100644 index 0000000000000000000000000000000000000000..9f8ef1298473f5e60c3fb09de2b4ee4d4c0dc5c7 --- /dev/null +++ b/Login2/.idea/.name @@ -0,0 +1 @@ +Login \ No newline at end of file diff --git a/Login2/.idea/compiler.xml b/Login2/.idea/compiler.xml new file mode 100644 index 0000000000000000000000000000000000000000..fb7f4a8a465d42b4a0390d464b83b99e8465bba7 --- /dev/null +++ b/Login2/.idea/compiler.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Login2/.idea/deploymentTargetDropDown.xml b/Login2/.idea/deploymentTargetDropDown.xml new file mode 100644 index 0000000000000000000000000000000000000000..59e7f06c514219243efea532afd0800399d294ad --- /dev/null +++ b/Login2/.idea/deploymentTargetDropDown.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Login2/.idea/gradle.xml b/Login2/.idea/gradle.xml new file mode 100644 index 0000000000000000000000000000000000000000..526b4c25c6813ef690dfffafcf9a523c789c94a7 --- /dev/null +++ b/Login2/.idea/gradle.xml @@ -0,0 +1,20 @@ + + + + + + + \ No newline at end of file diff --git a/Login2/.idea/misc.xml b/Login2/.idea/misc.xml new file mode 100644 index 0000000000000000000000000000000000000000..0f64966da082dfa9bd2c80bfefbd0cd5f220b0f7 --- /dev/null +++ b/Login2/.idea/misc.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/Login2/Login.zip b/Login2/Login.zip new file mode 100644 index 0000000000000000000000000000000000000000..39d969eca25d49d3152bd8a611669df0ecdd04e6 Binary files /dev/null and b/Login2/Login.zip differ diff --git a/Login2/app/.gitignore b/Login2/app/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..42afabfd2abebf31384ca7797186a27a4b7dbee8 --- /dev/null +++ b/Login2/app/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/Login2/app/build.gradle b/Login2/app/build.gradle new file mode 100644 index 0000000000000000000000000000000000000000..2997b2fe3aff436fdf1f0e255dbcab1b7513b31e --- /dev/null +++ b/Login2/app/build.gradle @@ -0,0 +1,38 @@ +plugins { + id 'com.android.application' +} + +android { + compileSdk 30 + + defaultConfig { + applicationId "com.example.login" + minSdk 21 + targetSdk 30 + versionCode 1 + versionName "1.0" + + testInstrumentationRunner "android.support.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 'com.android.support:appcompat-v7:28.0.0' + implementation 'com.android.support.constraint:constraint-layout:2.0.4' + testImplementation 'junit:junit:4.+' + androidTestImplementation 'com.android.support.test:runner:1.0.2' + androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' +} + diff --git a/Login2/app/proguard-rules.pro b/Login2/app/proguard-rules.pro new file mode 100644 index 0000000000000000000000000000000000000000..481bb434814107eb79d7a30b676d344b0df2f8ce --- /dev/null +++ b/Login2/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/Login2/app/release/app-release.apk b/Login2/app/release/app-release.apk new file mode 100644 index 0000000000000000000000000000000000000000..298ca22b1080bdf6d68d4a93d1b2f0a136d24514 Binary files /dev/null and b/Login2/app/release/app-release.apk differ diff --git a/Login2/app/release/output-metadata.json b/Login2/app/release/output-metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..5aa9cd261cead896bb964e2efdc2e885267f327a --- /dev/null +++ b/Login2/app/release/output-metadata.json @@ -0,0 +1,20 @@ +{ + "version": 3, + "artifactType": { + "type": "APK", + "kind": "Directory" + }, + "applicationId": "com.example.login", + "variantName": "release", + "elements": [ + { + "type": "SINGLE", + "filters": [], + "attributes": [], + "versionCode": 1, + "versionName": "1.0", + "outputFile": "app-release.apk" + } + ], + "elementType": "File" +} \ No newline at end of file diff --git a/Login2/app/src/androidTest/java/com/example/login/ExampleInstrumentedTest.java b/Login2/app/src/androidTest/java/com/example/login/ExampleInstrumentedTest.java new file mode 100644 index 0000000000000000000000000000000000000000..1706f80e68159f7c8ceb09b0412e9d498a648ec1 --- /dev/null +++ b/Login2/app/src/androidTest/java/com/example/login/ExampleInstrumentedTest.java @@ -0,0 +1,25 @@ +package com.example.login; + +import android.content.Context; +import android.support.test.InstrumentationRegistry; +import android.support.test.runner.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.login", appContext.getPackageName()); + } +} \ No newline at end of file diff --git a/Login2/app/src/main/AndroidManifest.xml b/Login2/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000000000000000000000000000000000000..bffa730a2a54822fb6052076a0182c45b8ac4a6c --- /dev/null +++ b/Login2/app/src/main/AndroidManifest.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Login2/app/src/main/java/com/example/login/GlobalValue.java b/Login2/app/src/main/java/com/example/login/GlobalValue.java new file mode 100644 index 0000000000000000000000000000000000000000..40a7a530494bb60d0b228b3776b09393a2ab865b --- /dev/null +++ b/Login2/app/src/main/java/com/example/login/GlobalValue.java @@ -0,0 +1,13 @@ +package com.example.login; + +public class GlobalValue { + private boolean isCheck; + public boolean isCheck() { + return isCheck; + } + public void setCheck(boolean check) { + isCheck = check; + } + +} + diff --git a/Login2/app/src/main/java/com/example/login/InnerActivity.java b/Login2/app/src/main/java/com/example/login/InnerActivity.java new file mode 100644 index 0000000000000000000000000000000000000000..fdb4d81401693b7b64e06edb36f5469548f4d49c --- /dev/null +++ b/Login2/app/src/main/java/com/example/login/InnerActivity.java @@ -0,0 +1,13 @@ +package com.example.login; + +import android.support.v7.app.AppCompatActivity; +import android.os.Bundle; + +public class InnerActivity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_inner); + } +} \ No newline at end of file diff --git a/Login2/app/src/main/java/com/example/login/MainActivity.java b/Login2/app/src/main/java/com/example/login/MainActivity.java new file mode 100644 index 0000000000000000000000000000000000000000..0106b8be4d44e14ff20860961338c85acbc02a27 --- /dev/null +++ b/Login2/app/src/main/java/com/example/login/MainActivity.java @@ -0,0 +1,38 @@ +package com.example.login; + +import android.support.v7.app.AppCompatActivity; +import android.graphics.drawable.Drawable; +import android.os.Bundle; +import android.view.View; +import android.view.Window; +import android.widget.RadioButton; + +public class MainActivity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + supportRequestWindowFeature(Window.FEATURE_NO_TITLE); + setContentView(R.layout.activity_main); + } + +// final RadioButton rb_bug = (RadioButton) findViewById(R.id.remember); +// final GlobalValue globalValue=new GlobalValue(); +// +// rb_bug.setOnClickListener(new View.OnClickListener() { +// @Override +// public void onClick(View v) { +// boolean isCheck=globalValue.isCheck(); +// if (isCheck){ +// if(v==rb_bug) +// rb_bug.setChecked(false); +// }else { +// if(v==rb_bug) +// rb_bug.setChecked(true); +// } +// globalValue.setCheck(!isCheck); +// } + +// }); + +} diff --git a/Login2/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/Login2/app/src/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 0000000000000000000000000000000000000000..2b068d11462a4b96669193de13a711a3a36220a0 --- /dev/null +++ b/Login2/app/src/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/Login2/app/src/main/res/drawable/ic_launcher_background.xml b/Login2/app/src/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 0000000000000000000000000000000000000000..07d5da9cbf141911847041df5d7b87f0dd5ef9d4 --- /dev/null +++ b/Login2/app/src/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Login2/app/src/main/res/drawable/my_button.xml b/Login2/app/src/main/res/drawable/my_button.xml new file mode 100644 index 0000000000000000000000000000000000000000..340e9703f8ec2bfa5a1e83d806131dd8c0cf3668 --- /dev/null +++ b/Login2/app/src/main/res/drawable/my_button.xml @@ -0,0 +1,14 @@ + + + + + + + + + + \ No newline at end of file diff --git a/Login2/app/src/main/res/drawable/my_input.xml b/Login2/app/src/main/res/drawable/my_input.xml new file mode 100644 index 0000000000000000000000000000000000000000..36adfa6365ddbda0714a24eb5d5456264113c8e6 --- /dev/null +++ b/Login2/app/src/main/res/drawable/my_input.xml @@ -0,0 +1,14 @@ + + + + + + + + + + \ No newline at end of file diff --git a/Login2/app/src/main/res/drawable/my_layout.xml b/Login2/app/src/main/res/drawable/my_layout.xml new file mode 100644 index 0000000000000000000000000000000000000000..2359316e536db3e9408a38e62df17bdb148bc901 --- /dev/null +++ b/Login2/app/src/main/res/drawable/my_layout.xml @@ -0,0 +1,12 @@ + + + + + + + + + \ No newline at end of file diff --git a/Login2/app/src/main/res/layout/activity_inner.xml b/Login2/app/src/main/res/layout/activity_inner.xml new file mode 100644 index 0000000000000000000000000000000000000000..a569bfdbaa2491c02680e438a2011be8b5534b38 --- /dev/null +++ b/Login2/app/src/main/res/layout/activity_inner.xml @@ -0,0 +1,9 @@ + + + + \ No newline at end of file diff --git a/Login2/app/src/main/res/layout/activity_main.xml b/Login2/app/src/main/res/layout/activity_main.xml new file mode 100644 index 0000000000000000000000000000000000000000..810775759d7e8771305e699cbe02b01652d9f803 --- /dev/null +++ b/Login2/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + +