diff --git a/Luck02/.gitignore b/Luck02/.gitignore deleted file mode 100644 index 603b140..0000000 --- a/Luck02/.gitignore +++ /dev/null @@ -1,14 +0,0 @@ -*.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 diff --git a/Luck02/.idea/.gitignore b/Luck02/.idea/.gitignore deleted file mode 100644 index 26d3352..0000000 --- a/Luck02/.idea/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml diff --git a/Luck02/.idea/codeStyles/Project.xml b/Luck02/.idea/codeStyles/Project.xml deleted file mode 100644 index 681f41a..0000000 --- a/Luck02/.idea/codeStyles/Project.xml +++ /dev/null @@ -1,116 +0,0 @@ - - - - - - - -
- - - - xmlns:android - - ^$ - - - -
-
- - - - xmlns:.* - - ^$ - - - BY_NAME - -
-
- - - - .*:id - - http://schemas.android.com/apk/res/android - - - -
-
- - - - .*:name - - http://schemas.android.com/apk/res/android - - - -
-
- - - - name - - ^$ - - - -
-
- - - - style - - ^$ - - - -
-
- - - - .* - - ^$ - - - BY_NAME - -
-
- - - - .* - - http://schemas.android.com/apk/res/android - - - ANDROID_ATTRIBUTE_ORDER - -
-
- - - - .* - - .* - - - BY_NAME - -
-
-
-
-
-
\ No newline at end of file diff --git a/Luck02/.idea/compiler.xml b/Luck02/.idea/compiler.xml deleted file mode 100644 index 659bf43..0000000 --- a/Luck02/.idea/compiler.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/Luck02/.idea/gradle.xml b/Luck02/.idea/gradle.xml deleted file mode 100644 index 4404972..0000000 --- a/Luck02/.idea/gradle.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/Luck02/.idea/jarRepositories.xml b/Luck02/.idea/jarRepositories.xml deleted file mode 100644 index a5f05cd..0000000 --- a/Luck02/.idea/jarRepositories.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/Luck02/.idea/misc.xml b/Luck02/.idea/misc.xml deleted file mode 100644 index 6375452..0000000 --- a/Luck02/.idea/misc.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/Luck02/Test b/Luck02/Test deleted file mode 160000 index ea49bbf..0000000 --- a/Luck02/Test +++ /dev/null @@ -1 +0,0 @@ -Subproject commit ea49bbf801bd712b0024c06f85425017f58a000d diff --git a/Luck02/app/.gitignore b/Luck02/app/.gitignore deleted file mode 100644 index 796b96d..0000000 --- a/Luck02/app/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/build diff --git a/Luck02/app/build.gradle b/Luck02/app/build.gradle deleted file mode 100644 index f8b003b..0000000 --- a/Luck02/app/build.gradle +++ /dev/null @@ -1,30 +0,0 @@ -apply plugin: 'com.android.application' - -android { - compileSdkVersion 30 - buildToolsVersion "30.0.2" - defaultConfig { - applicationId "com.example.orangesale_02" - minSdkVersion 23 - 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' - } - } -} - -dependencies { - implementation fileTree(dir: 'libs', include: ['*.jar']) - implementation 'androidx.appcompat:appcompat:1.0.2' - implementation 'androidx.constraintlayout:constraintlayout:1.1.3' - testImplementation 'junit:junit:4.12' - androidTestImplementation 'androidx.test.ext:junit:1.1.0' - androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1' - implementation 'liji.library.dev:citypickerview:1.1.0' -} diff --git a/Luck02/app/proguard-rules.pro b/Luck02/app/proguard-rules.pro deleted file mode 100644 index f1b4245..0000000 --- a/Luck02/app/proguard-rules.pro +++ /dev/null @@ -1,21 +0,0 @@ -# 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 diff --git a/Luck02/app/src/androidTest/java/com/example/orangesale_02/ExampleInstrumentedTest.java b/Luck02/app/src/androidTest/java/com/example/orangesale_02/ExampleInstrumentedTest.java deleted file mode 100644 index b174552..0000000 --- a/Luck02/app/src/androidTest/java/com/example/orangesale_02/ExampleInstrumentedTest.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.example.orangesale_02; - -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.orangesale_02", appContext.getPackageName()); - } -} diff --git a/Luck02/app/src/main/AndroidManifest.xml b/Luck02/app/src/main/AndroidManifest.xml deleted file mode 100644 index 89f7917..0000000 --- a/Luck02/app/src/main/AndroidManifest.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Luck02/app/src/main/java/com/example/orangesale_02/MainActivity.java b/Luck02/app/src/main/java/com/example/orangesale_02/MainActivity.java deleted file mode 100644 index 96b1179..0000000 --- a/Luck02/app/src/main/java/com/example/orangesale_02/MainActivity.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.example.orangesale_02; - -import androidx.appcompat.app.AppCompatActivity; - -import android.content.Intent; -import android.os.Bundle; -import android.view.View; -import android.widget.Button; -import android.widget.EditText; - -public class MainActivity extends AppCompatActivity implements View.OnClickListener { - private Button registerButton, loginButton; - private EditText usernameText, paswdEdit; - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.user_login); - init(); - } - - private void init() { - usernameText = findViewById(R.id.username); - paswdEdit = findViewById(R.id.password); - loginButton = findViewById(R.id.login); - loginButton.setOnClickListener(this); - registerButton = findViewById(R.id.register); - registerButton.setOnClickListener(this); - } - - @Override - public void onClick(View v) { - switch (v.getId()) { - case R.id.register: - Intent intent = new Intent(MainActivity.this, RegisterActivity.class); - startActivity(intent); - break; - case R.id.login: - break; - } - } -} diff --git a/Luck02/app/src/main/java/com/example/orangesale_02/RegisterActivity.java b/Luck02/app/src/main/java/com/example/orangesale_02/RegisterActivity.java deleted file mode 100644 index d0dc89f..0000000 --- a/Luck02/app/src/main/java/com/example/orangesale_02/RegisterActivity.java +++ /dev/null @@ -1,143 +0,0 @@ -package com.example.orangesale_02; - -import android.content.Intent; -import android.graphics.Color; -import android.os.Bundle; -import android.view.View; -import android.widget.Button; -import android.widget.EditText; -import android.widget.RadioGroup; -import android.widget.TextView; -import android.widget.Toast; - -import androidx.annotation.Nullable; -import androidx.appcompat.app.AppCompatActivity; - -import com.lljjcoder.citypickerview.widget.CityPicker; - -public class RegisterActivity extends AppCompatActivity implements View.OnClickListener, RadioGroup.OnCheckedChangeListener { - private EditText usernameEdit, passwordEdit, surePasswordEdit; - private TextView cityText; - private CityPicker cityPicker; - private Button regButton; - private RadioGroup sexGroup; - private String sexStr="男"; - - - @Override - protected void onCreate(@Nullable Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.user_register); - init(); - } - - /** - * 界面组件初始化 - */ - private void init() { - cityText = findViewById(R.id.reg_province); - cityText.setOnClickListener(this); - usernameEdit = findViewById(R.id.reg_username); - passwordEdit = findViewById(R.id.reg_password); - surePasswordEdit = findViewById(R.id.reg_sure_password); - regButton = findViewById(R.id.reg_register); - regButton.setOnClickListener(this); - sexGroup = findViewById(R.id.sex); - sexGroup.setOnCheckedChangeListener(this); - } - - @Override - public void onClick(View v) { - switch (v.getId()) { - case R.id.reg_province: - initCityPicker(); - cityPicker.show(); - break; - case R.id.reg_register: - //注册验证方法 - validateRegister(); - break; - - } - } - - /** - * 初始化城市选择器 - */ - public void initCityPicker() { - cityPicker = new CityPicker.Builder(RegisterActivity.this) - .textSize(16) - .title("地址选择") - .backgroundPop(0xa0000000) - .titleBackgroundColor("#EFB81C") - .titleTextColor("#000000") - .backgroundPop(0xa0000000) - .confirTextColor("#000000") - .cancelTextColor("#000000") - .province("江西省") - .city("赣州市") - .district("章贡区") - .textColor(Color.parseColor("#000000")) - .provinceCyclic(true) - .cityCyclic(false) - .districtCyclic(false) - .visibleItemsCount(7) - .itemPadding(10) - .onlyShowProvinceAndCity(false) - .build(); - cityPicker.setOnCityItemClickListener(new CityPicker.OnCityItemClickListener() { - @Override - public void onSelected(String... strings) { - String province = strings[0]; - String city = strings[1]; - String district = strings[2]; - cityText.setText(String.format("%s %s %s", province, city, district)); - } - - @Override - public void onCancel() { - } - }); - - } - - /** - * 注册验证 - */ - public void validateRegister() { - Intent intent = new Intent(RegisterActivity.this, UserActivity.class); - String username = usernameEdit.getText().toString(); - String password = passwordEdit.getText().toString(); - String surePassword = surePasswordEdit.getText().toString(); - String city = cityText.getText().toString(); - //判断两次密码是否输入一致 - if (password.equals(surePassword)) { - //这里也可以再进行其它的验证,如是否符合要求等,符合就进行插入数据库操作 - if (!username.equals("") || !password.equals("")) { - if (!city.equals("")) { - Bundle bundle = new Bundle(); - bundle.putString("username", username); - bundle.putString("password", password); - bundle.putString("sex", sexStr); - bundle.putString("city", city); - intent.putExtras(bundle); - startActivity(intent); - } else { - Toast.makeText(RegisterActivity.this, "请选择地址", Toast.LENGTH_SHORT).show(); - } - } else { - Toast.makeText(RegisterActivity.this, "账号或密码未填写", Toast.LENGTH_SHORT).show(); - } - } else { - Toast.makeText(RegisterActivity.this, "两次密码输入不一致", Toast.LENGTH_SHORT).show(); - } - - - } - - @Override - public void onCheckedChanged(RadioGroup group, int checkedId) { - //根据用户选择来改变sex的值 - sexStr = checkedId == R.id.reg_man ? "男" : "女"; - } -} diff --git a/Luck02/app/src/main/java/com/example/orangesale_02/UserActivity.java b/Luck02/app/src/main/java/com/example/orangesale_02/UserActivity.java deleted file mode 100644 index 41d1a8d..0000000 --- a/Luck02/app/src/main/java/com/example/orangesale_02/UserActivity.java +++ /dev/null @@ -1,62 +0,0 @@ -package com.example.orangesale_02; - -import android.app.Activity; -import android.content.Intent; -import android.os.Bundle; -import android.view.View; -import android.widget.Button; -import android.widget.ImageView; -import android.widget.LinearLayout; -import android.widget.TextView; - -import androidx.annotation.Nullable; - -public class UserActivity extends Activity { - private ImageView userIconImage; - private TextView usernameText, userSexText, userCityText; - private LinearLayout usernameLine, userSexline, userCityLine, userPayLine, userSettingLine, userGeneralLine; - - @Override - protected void onCreate(@Nullable Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.content_user); - Button btnGoto=findViewById(R.id.btnGoto); - btnGoto.setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View v) { - Intent intent=new Intent(UserActivity.this,MainActivity.class); - startActivity(intent); - } - }); - - init(); - } - - /** - * 组件初始化 - */ - private void init() { - userIconImage = findViewById(R.id.user_icon); - usernameText = findViewById(R.id.user_username); - userSexText = findViewById(R.id.user_sex); - userCityText = findViewById(R.id.user_city); - usernameLine = findViewById(R.id.user_username_line); - userSexline = findViewById(R.id.user_sex_line); - userCityLine = findViewById(R.id.user_city_line); - userPayLine = findViewById(R.id.user_pay); - userSettingLine = findViewById(R.id.user_setting); - userGeneralLine = findViewById(R.id.user_general); - setData(); - } - - /** - * 组件赋值 - */ - private void setData() { - Intent intent = UserActivity.this.getIntent(); - Bundle bundle = intent.getExtras(); - usernameText.setText(String.format("用户名:%s", bundle.getString("username"))); - userSexText.setText(String.format("性别:%s", bundle.getString("sex"))); - userCityText.setText(String.format("城市:%s", bundle.getString("city"))); - } -} diff --git a/Luck02/app/src/main/res/drawable-v24/address.png b/Luck02/app/src/main/res/drawable-v24/address.png deleted file mode 100644 index 7318be0..0000000 Binary files a/Luck02/app/src/main/res/drawable-v24/address.png and /dev/null differ diff --git a/Luck02/app/src/main/res/drawable-v24/arrow_down.png b/Luck02/app/src/main/res/drawable-v24/arrow_down.png deleted file mode 100644 index 6d95bb5..0000000 Binary files a/Luck02/app/src/main/res/drawable-v24/arrow_down.png and /dev/null differ diff --git a/Luck02/app/src/main/res/drawable-v24/arrow_right.png b/Luck02/app/src/main/res/drawable-v24/arrow_right.png deleted file mode 100644 index 84ded85..0000000 Binary files a/Luck02/app/src/main/res/drawable-v24/arrow_right.png and /dev/null differ diff --git a/Luck02/app/src/main/res/drawable-v24/button_login.xml b/Luck02/app/src/main/res/drawable-v24/button_login.xml deleted file mode 100644 index d093f1b..0000000 --- a/Luck02/app/src/main/res/drawable-v24/button_login.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Luck02/app/src/main/res/drawable-v24/button_register.xml b/Luck02/app/src/main/res/drawable-v24/button_register.xml deleted file mode 100644 index 3eb0673..0000000 --- a/Luck02/app/src/main/res/drawable-v24/button_register.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Luck02/app/src/main/res/drawable-v24/city.png b/Luck02/app/src/main/res/drawable-v24/city.png deleted file mode 100644 index 790fb2b..0000000 Binary files a/Luck02/app/src/main/res/drawable-v24/city.png and /dev/null differ diff --git a/Luck02/app/src/main/res/drawable-v24/ic_launcher_background.xml b/Luck02/app/src/main/res/drawable-v24/ic_launcher_background.xml deleted file mode 100644 index 0d025f9..0000000 --- a/Luck02/app/src/main/res/drawable-v24/ic_launcher_background.xml +++ /dev/null @@ -1,170 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Luck02/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/Luck02/app/src/main/res/drawable-v24/ic_launcher_foreground.xml deleted file mode 100644 index 1f6bb29..0000000 --- a/Luck02/app/src/main/res/drawable-v24/ic_launcher_foreground.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - diff --git a/Luck02/app/src/main/res/drawable-v24/liuyifei.jpg b/Luck02/app/src/main/res/drawable-v24/liuyifei.jpg deleted file mode 100644 index 20031fd..0000000 Binary files a/Luck02/app/src/main/res/drawable-v24/liuyifei.jpg and /dev/null differ diff --git a/Luck02/app/src/main/res/drawable-v24/orange.png b/Luck02/app/src/main/res/drawable-v24/orange.png deleted file mode 100644 index 70e8db8..0000000 Binary files a/Luck02/app/src/main/res/drawable-v24/orange.png and /dev/null differ diff --git a/Luck02/app/src/main/res/drawable-v24/password.png b/Luck02/app/src/main/res/drawable-v24/password.png deleted file mode 100644 index 1c6c4f5..0000000 Binary files a/Luck02/app/src/main/res/drawable-v24/password.png and /dev/null differ diff --git a/Luck02/app/src/main/res/drawable-v24/setting.png b/Luck02/app/src/main/res/drawable-v24/setting.png deleted file mode 100644 index 34c2f2f..0000000 Binary files a/Luck02/app/src/main/res/drawable-v24/setting.png and /dev/null differ diff --git a/Luck02/app/src/main/res/drawable-v24/sex.png b/Luck02/app/src/main/res/drawable-v24/sex.png deleted file mode 100644 index acb8197..0000000 Binary files a/Luck02/app/src/main/res/drawable-v24/sex.png and /dev/null differ diff --git a/Luck02/app/src/main/res/drawable-v24/spinner_drop_down_shape.xml b/Luck02/app/src/main/res/drawable-v24/spinner_drop_down_shape.xml deleted file mode 100644 index 64306b1..0000000 --- a/Luck02/app/src/main/res/drawable-v24/spinner_drop_down_shape.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/Luck02/app/src/main/res/drawable-v24/sure_apssword.png b/Luck02/app/src/main/res/drawable-v24/sure_apssword.png deleted file mode 100644 index 0e7cee9..0000000 Binary files a/Luck02/app/src/main/res/drawable-v24/sure_apssword.png and /dev/null differ diff --git a/Luck02/app/src/main/res/drawable-v24/user.png b/Luck02/app/src/main/res/drawable-v24/user.png deleted file mode 100644 index 47d8362..0000000 Binary files a/Luck02/app/src/main/res/drawable-v24/user.png and /dev/null differ diff --git a/Luck02/app/src/main/res/drawable-v24/user_account.png b/Luck02/app/src/main/res/drawable-v24/user_account.png deleted file mode 100644 index e70142a..0000000 Binary files a/Luck02/app/src/main/res/drawable-v24/user_account.png and /dev/null differ diff --git a/Luck02/app/src/main/res/drawable-v24/user_general.png b/Luck02/app/src/main/res/drawable-v24/user_general.png deleted file mode 100644 index cf57947..0000000 Binary files a/Luck02/app/src/main/res/drawable-v24/user_general.png and /dev/null differ diff --git a/Luck02/app/src/main/res/drawable-v24/user_icon.png b/Luck02/app/src/main/res/drawable-v24/user_icon.png deleted file mode 100644 index d5309b1..0000000 Binary files a/Luck02/app/src/main/res/drawable-v24/user_icon.png and /dev/null differ diff --git a/Luck02/app/src/main/res/drawable-v24/user_pay.png b/Luck02/app/src/main/res/drawable-v24/user_pay.png deleted file mode 100644 index 3fd6f50..0000000 Binary files a/Luck02/app/src/main/res/drawable-v24/user_pay.png and /dev/null differ diff --git a/Luck02/app/src/main/res/drawable-v24/user_sex.png b/Luck02/app/src/main/res/drawable-v24/user_sex.png deleted file mode 100644 index da0e318..0000000 Binary files a/Luck02/app/src/main/res/drawable-v24/user_sex.png and /dev/null differ diff --git a/Luck02/app/src/main/res/drawable/ic_launcher_background.xml b/Luck02/app/src/main/res/drawable/ic_launcher_background.xml deleted file mode 100644 index 0d025f9..0000000 --- a/Luck02/app/src/main/res/drawable/ic_launcher_background.xml +++ /dev/null @@ -1,170 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Luck02/app/src/main/res/layout/content_user.xml b/Luck02/app/src/main/res/layout/content_user.xml deleted file mode 100644 index a3108f6..0000000 --- a/Luck02/app/src/main/res/layout/content_user.xml +++ /dev/null @@ -1,206 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -