commit 0d215e86c3bd91a8a2df1407c9f84af97c6f3e3d Author: hayden <2867571834@qq.com> Date: Tue Mar 21 15:04:12 2023 +0800 Init diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..aa724b7 --- /dev/null +++ b/.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/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/.name b/.idea/.name new file mode 100644 index 0000000..b3405b3 --- /dev/null +++ b/.idea/.name @@ -0,0 +1 @@ +My Application \ No newline at end of file diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000..fb7f4a8 --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/deploymentTargetDropDown.xml b/.idea/deploymentTargetDropDown.xml new file mode 100644 index 0000000..adb5d39 --- /dev/null +++ b/.idea/deploymentTargetDropDown.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml new file mode 100644 index 0000000..a2d7c21 --- /dev/null +++ b/.idea/gradle.xml @@ -0,0 +1,19 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..bdd9278 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,10 @@ + + + + + + + + + \ No newline at end of file diff --git a/app/.gitignore b/app/.gitignore new file mode 100644 index 0000000..42afabf --- /dev/null +++ b/app/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle new file mode 100644 index 0000000..dcf189d --- /dev/null +++ b/app/build.gradle @@ -0,0 +1,40 @@ +plugins { + id 'com.android.application' +} + +android { + namespace 'com.example.myapplication' + compileSdk 33 + + defaultConfig { + applicationId "com.example.myapplication" + minSdk 21 + targetSdk 33 + 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.4.1' + implementation 'com.google.android.material:material:1.5.0' + implementation 'androidx.constraintlayout:constraintlayout:2.1.3' + testImplementation 'junit:junit:4.13.2' + androidTestImplementation 'androidx.test.ext:junit:1.1.3' + androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' + +} \ No newline at end of file diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro new file mode 100644 index 0000000..481bb43 --- /dev/null +++ b/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/app/src/androidTest/java/com/example/myapplication/ExampleInstrumentedTest.java b/app/src/androidTest/java/com/example/myapplication/ExampleInstrumentedTest.java new file mode 100644 index 0000000..982ba51 --- /dev/null +++ b/app/src/androidTest/java/com/example/myapplication/ExampleInstrumentedTest.java @@ -0,0 +1,26 @@ +package com.example.myapplication; + +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.myapplication", appContext.getPackageName()); + } +} \ No newline at end of file diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..c03b389 --- /dev/null +++ b/app/src/main/AndroidManifest.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/java/com/example/myapplication/LoginActivity.java b/app/src/main/java/com/example/myapplication/LoginActivity.java new file mode 100644 index 0000000..8763851 --- /dev/null +++ b/app/src/main/java/com/example/myapplication/LoginActivity.java @@ -0,0 +1,12 @@ +package com.example.myapplication; + +import android.app.Activity; +import android.os.Bundle; + +public class LoginActivity extends Activity { + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.user_login); + } +} diff --git a/app/src/main/java/com/example/myapplication/MineActivity.java b/app/src/main/java/com/example/myapplication/MineActivity.java new file mode 100644 index 0000000..d691c9f --- /dev/null +++ b/app/src/main/java/com/example/myapplication/MineActivity.java @@ -0,0 +1,17 @@ +package com.example.myapplication; + +import androidx.appcompat.app.AppCompatActivity; + +import android.os.Bundle; +import android.widget.TextView; + +public class MineActivity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.mine); + } + + +} \ No newline at end of file diff --git a/app/src/main/java/com/example/myapplication/RigsterActivity.java b/app/src/main/java/com/example/myapplication/RigsterActivity.java new file mode 100644 index 0000000..d8f2542 --- /dev/null +++ b/app/src/main/java/com/example/myapplication/RigsterActivity.java @@ -0,0 +1,46 @@ +package com.example.myapplication; + +import android.app.Activity; +import android.app.AppComponentFactory; +import android.os.Bundle; +import android.view.View; +import android.widget.TextView; + +import androidx.appcompat.app.AppCompatActivity; + +public class RigsterActivity extends Activity { + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.user_rigster); + } +} + +// //界面组件初始化 +// private void init(){ +// cityText = findViewById(R.id.ri_province); +// cityText.setOnClickListener(this); +// } +// +// @Override +// public void onClick(View v) { +// switch(v.getId()){ +// case R.id.ri_province: +// initCityPicker(); +// cityPicker.show(); +// break; +// } +// } +// +// //初始化城市选择器 +// private void initCityPicker() { +// cityPicker = new CityPicker.Builder(RigsterActivity.this) +// .textSize(16) +// .title("地址选择") +// .backgroundPop(0xa0000000) +// .title +// } +//} + + + //初始化城市选择爱 diff --git a/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/app/src/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 0000000..2b068d1 --- /dev/null +++ b/app/src/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/address.jpg b/app/src/main/res/drawable/address.jpg new file mode 100644 index 0000000..8a04b60 Binary files /dev/null and b/app/src/main/res/drawable/address.jpg differ diff --git a/app/src/main/res/drawable/arrow.jpg b/app/src/main/res/drawable/arrow.jpg new file mode 100644 index 0000000..79d0f73 Binary files /dev/null and b/app/src/main/res/drawable/arrow.jpg differ diff --git a/app/src/main/res/drawable/assure_password.png b/app/src/main/res/drawable/assure_password.png new file mode 100644 index 0000000..ec9a241 Binary files /dev/null and b/app/src/main/res/drawable/assure_password.png differ diff --git a/app/src/main/res/drawable/button_1.xml b/app/src/main/res/drawable/button_1.xml new file mode 100644 index 0000000..c650545 --- /dev/null +++ b/app/src/main/res/drawable/button_1.xml @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/drawable/button_rigster.xml b/app/src/main/res/drawable/button_rigster.xml new file mode 100644 index 0000000..e3e024f --- /dev/null +++ b/app/src/main/res/drawable/button_rigster.xml @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/drawable/consultant.png b/app/src/main/res/drawable/consultant.png new file mode 100644 index 0000000..21ed5fe Binary files /dev/null and b/app/src/main/res/drawable/consultant.png differ diff --git a/app/src/main/res/drawable/coupon.png b/app/src/main/res/drawable/coupon.png new file mode 100644 index 0000000..b2093c1 Binary files /dev/null and b/app/src/main/res/drawable/coupon.png differ diff --git a/app/src/main/res/drawable/credit.png b/app/src/main/res/drawable/credit.png new file mode 100644 index 0000000..2ad7a7b Binary files /dev/null and b/app/src/main/res/drawable/credit.png differ diff --git a/app/src/main/res/drawable/cxk2.png b/app/src/main/res/drawable/cxk2.png new file mode 100644 index 0000000..054aadc Binary files /dev/null and b/app/src/main/res/drawable/cxk2.png differ diff --git a/app/src/main/res/drawable/data.png b/app/src/main/res/drawable/data.png new file mode 100644 index 0000000..b417e6c Binary files /dev/null and b/app/src/main/res/drawable/data.png differ diff --git a/app/src/main/res/drawable/ic_launcher_background.xml b/app/src/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 0000000..07d5da9 --- /dev/null +++ b/app/src/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/drawable/logo.jpg b/app/src/main/res/drawable/logo.jpg new file mode 100644 index 0000000..eae3be5 Binary files /dev/null and b/app/src/main/res/drawable/logo.jpg differ diff --git a/app/src/main/res/drawable/my_.png b/app/src/main/res/drawable/my_.png new file mode 100644 index 0000000..11efb17 Binary files /dev/null and b/app/src/main/res/drawable/my_.png differ diff --git a/app/src/main/res/drawable/my_document.jpg b/app/src/main/res/drawable/my_document.jpg new file mode 100644 index 0000000..133ab43 Binary files /dev/null and b/app/src/main/res/drawable/my_document.jpg differ diff --git a/app/src/main/res/drawable/notice.png b/app/src/main/res/drawable/notice.png new file mode 100644 index 0000000..4ac6245 Binary files /dev/null and b/app/src/main/res/drawable/notice.png differ diff --git a/app/src/main/res/drawable/password.jpg b/app/src/main/res/drawable/password.jpg new file mode 100644 index 0000000..8ad2a68 Binary files /dev/null and b/app/src/main/res/drawable/password.jpg differ diff --git a/app/src/main/res/drawable/password4.png b/app/src/main/res/drawable/password4.png new file mode 100644 index 0000000..a2c3308 Binary files /dev/null and b/app/src/main/res/drawable/password4.png differ diff --git a/app/src/main/res/drawable/password_ensure.png b/app/src/main/res/drawable/password_ensure.png new file mode 100644 index 0000000..4b76a11 Binary files /dev/null and b/app/src/main/res/drawable/password_ensure.png differ diff --git a/app/src/main/res/drawable/principal_sheet.jpg b/app/src/main/res/drawable/principal_sheet.jpg new file mode 100644 index 0000000..acd3a4a Binary files /dev/null and b/app/src/main/res/drawable/principal_sheet.jpg differ diff --git a/app/src/main/res/drawable/search.png b/app/src/main/res/drawable/search.png new file mode 100644 index 0000000..7b9950f Binary files /dev/null and b/app/src/main/res/drawable/search.png differ diff --git a/app/src/main/res/drawable/sex.jpg b/app/src/main/res/drawable/sex.jpg new file mode 100644 index 0000000..d9a6858 Binary files /dev/null and b/app/src/main/res/drawable/sex.jpg differ diff --git a/app/src/main/res/drawable/shape.xml b/app/src/main/res/drawable/shape.xml new file mode 100644 index 0000000..fcd4230 --- /dev/null +++ b/app/src/main/res/drawable/shape.xml @@ -0,0 +1,7 @@ + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/user.jpg b/app/src/main/res/drawable/user.jpg new file mode 100644 index 0000000..edfdb43 Binary files /dev/null and b/app/src/main/res/drawable/user.jpg differ diff --git a/app/src/main/res/drawable/user2.jpg b/app/src/main/res/drawable/user2.jpg new file mode 100644 index 0000000..20027e7 Binary files /dev/null and b/app/src/main/res/drawable/user2.jpg differ diff --git a/app/src/main/res/drawable/user3.png b/app/src/main/res/drawable/user3.png new file mode 100644 index 0000000..2627992 Binary files /dev/null and b/app/src/main/res/drawable/user3.png differ diff --git a/app/src/main/res/drawable/user4.png b/app/src/main/res/drawable/user4.png new file mode 100644 index 0000000..7f38592 Binary files /dev/null and b/app/src/main/res/drawable/user4.png differ diff --git a/app/src/main/res/drawable/user_icon.jpg b/app/src/main/res/drawable/user_icon.jpg new file mode 100644 index 0000000..4a5c32e Binary files /dev/null and b/app/src/main/res/drawable/user_icon.jpg differ diff --git a/app/src/main/res/drawable/user_icon_2.jpg b/app/src/main/res/drawable/user_icon_2.jpg new file mode 100644 index 0000000..cbd57fd Binary files /dev/null and b/app/src/main/res/drawable/user_icon_2.jpg differ diff --git a/app/src/main/res/drawable/username.png b/app/src/main/res/drawable/username.png new file mode 100644 index 0000000..6230546 Binary files /dev/null and b/app/src/main/res/drawable/username.png differ diff --git a/app/src/main/res/layout/mine.xml b/app/src/main/res/layout/mine.xml new file mode 100644 index 0000000..58cb99e --- /dev/null +++ b/app/src/main/res/layout/mine.xml @@ -0,0 +1,176 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +