diff --git a/OrangeSale/.gitignore b/OrangeSale/.gitignore
new file mode 100644
index 0000000..603b140
--- /dev/null
+++ b/OrangeSale/.gitignore
@@ -0,0 +1,14 @@
+*.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/OrangeSale/.idea/.gitignore b/OrangeSale/.idea/.gitignore
new file mode 100644
index 0000000..26d3352
--- /dev/null
+++ b/OrangeSale/.idea/.gitignore
@@ -0,0 +1,3 @@
+# Default ignored files
+/shelf/
+/workspace.xml
diff --git a/OrangeSale/.idea/.name b/OrangeSale/.idea/.name
new file mode 100644
index 0000000..6f6888a
--- /dev/null
+++ b/OrangeSale/.idea/.name
@@ -0,0 +1 @@
+OrangeSale_02
\ No newline at end of file
diff --git a/OrangeSale/.idea/compiler.xml b/OrangeSale/.idea/compiler.xml
new file mode 100644
index 0000000..fb7f4a8
--- /dev/null
+++ b/OrangeSale/.idea/compiler.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/OrangeSale/.idea/dbnavigator.xml b/OrangeSale/.idea/dbnavigator.xml
new file mode 100644
index 0000000..c151812
--- /dev/null
+++ b/OrangeSale/.idea/dbnavigator.xml
@@ -0,0 +1,520 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/OrangeSale/.idea/gradle.xml b/OrangeSale/.idea/gradle.xml
new file mode 100644
index 0000000..861452f
--- /dev/null
+++ b/OrangeSale/.idea/gradle.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/OrangeSale/.idea/jarRepositories.xml b/OrangeSale/.idea/jarRepositories.xml
new file mode 100644
index 0000000..a5f05cd
--- /dev/null
+++ b/OrangeSale/.idea/jarRepositories.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/OrangeSale/.idea/misc.xml b/OrangeSale/.idea/misc.xml
new file mode 100644
index 0000000..fae0781
--- /dev/null
+++ b/OrangeSale/.idea/misc.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/OrangeSale/app/.gitignore b/OrangeSale/app/.gitignore
new file mode 100644
index 0000000..796b96d
--- /dev/null
+++ b/OrangeSale/app/.gitignore
@@ -0,0 +1 @@
+/build
diff --git a/OrangeSale/app/build.gradle b/OrangeSale/app/build.gradle
new file mode 100644
index 0000000..8dcefa3
--- /dev/null
+++ b/OrangeSale/app/build.gradle
@@ -0,0 +1,34 @@
+apply plugin: 'com.android.application'
+
+android {
+ compileSdkVersion 30
+ buildToolsVersion "30.0.2"
+ defaultConfig {
+ applicationId "com.example.orangesale_02"
+ minSdkVersion 23
+ targetSdkVersion 31
+ 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 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/OrangeSale/app/proguard-rules.pro b/OrangeSale/app/proguard-rules.pro
new file mode 100644
index 0000000..f1b4245
--- /dev/null
+++ b/OrangeSale/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
diff --git a/OrangeSale/app/src/androidTest/java/com/example/orangesale_02/ExampleInstrumentedTest.java b/OrangeSale/app/src/androidTest/java/com/example/orangesale_02/ExampleInstrumentedTest.java
new file mode 100644
index 0000000..b174552
--- /dev/null
+++ b/OrangeSale/app/src/androidTest/java/com/example/orangesale_02/ExampleInstrumentedTest.java
@@ -0,0 +1,27 @@
+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/OrangeSale/app/src/main/AndroidManifest.xml b/OrangeSale/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..d3a0dc3
--- /dev/null
+++ b/OrangeSale/app/src/main/AndroidManifest.xml
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/OrangeSale/app/src/main/java/com/example/orangesale_02/Adapter.java b/OrangeSale/app/src/main/java/com/example/orangesale_02/Adapter.java
new file mode 100644
index 0000000..38ffc00
--- /dev/null
+++ b/OrangeSale/app/src/main/java/com/example/orangesale_02/Adapter.java
@@ -0,0 +1,69 @@
+package com.example.orangesale_02;
+
+import android.content.Context;
+import android.graphics.Color;
+import android.util.Log;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+import android.widget.BaseAdapter;
+import android.widget.TextView;
+
+import com.example.orangesale_02.R;
+
+import java.util.List;
+
+public class Adapter extends BaseAdapter {
+ private List productCategory;
+ private LayoutInflater layoutInflater;
+ private int selectionPosition = -1;
+
+ public Adapter(List productCategory, Context context) {
+ this.productCategory = productCategory;
+ this.layoutInflater = LayoutInflater.from(context);
+ }
+
+ @Override
+ public int getCount() {
+ return productCategory.size();
+ }
+
+ @Override
+ public Object getItem(int position) {
+ return productCategory.get(position);
+ }
+
+ @Override
+ public long getItemId(int position) {
+ return position;
+ }
+
+ @Override
+ public View getView(int position, View convertView, ViewGroup parent) {
+ ViewHolder viewHolder = null;
+ if (convertView == null) {
+ viewHolder = new ViewHolder();
+ convertView = layoutInflater.inflate(R.layout.category_title, null);
+ Log.i("adapts", "getView: " + convertView);
+ viewHolder.tv = convertView.findViewById(R.id.category_titles);
+ convertView.setTag(viewHolder);
+ } else {
+ viewHolder = (ViewHolder) convertView.getTag();
+ }
+ viewHolder.tv.setText(productCategory.get(position));
+ if (selectionPosition == position) {
+ viewHolder.tv.setBackgroundColor(Color.YELLOW);
+ } else {
+ viewHolder.tv.setBackgroundColor(Color.WHITE);
+ }
+ return convertView;
+ }
+
+ public void setSelectedPosition(int position) {
+ this.selectionPosition = position;
+ }
+
+ class ViewHolder {
+ TextView tv;
+ }
+}
diff --git a/OrangeSale/app/src/main/java/com/example/orangesale_02/CategoryActivity.java b/OrangeSale/app/src/main/java/com/example/orangesale_02/CategoryActivity.java
new file mode 100644
index 0000000..8849851
--- /dev/null
+++ b/OrangeSale/app/src/main/java/com/example/orangesale_02/CategoryActivity.java
@@ -0,0 +1,163 @@
+package com.example.orangesale_02;
+
+import android.app.Activity;
+import android.app.FragmentManager;
+import android.app.FragmentTransaction;
+import android.os.Bundle;
+import android.widget.ListView;
+
+import androidx.annotation.Nullable;
+
+import com.example.orangesale_02.R;
+import com.example.orangesale_02.Adapter;
+import com.example.orangesale_02.Product;
+import com.example.orangesale_02.SetDetailFragment;
+
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+
+
+public class CategoryActivity extends Activity {
+ public OnChangeListener onchangedListener;
+ private List productList;
+ private List productCategory = new ArrayList<>();
+ private ListView titleList;
+ private Adapter adapter;
+
+ @Override
+ public void onCreate(@Nullable Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.content_category);
+ initData();
+ init();
+ SetDetailFragment fragment = new SetDetailFragment();
+ FragmentManager fragmentManager = getFragmentManager();
+ FragmentTransaction transaction = fragmentManager.beginTransaction();
+ transaction.replace(R.id.category_detail, fragment);
+ transaction.commit();
+ titleList.setOnItemClickListener((parent, view, position, id) -> {
+ adapter.setSelectedPosition(position);
+ adapter.notifyDataSetInvalidated();
+ if (onchangedListener != null) {
+ onchangedListener.changeText(productList.get(position));
+ }
+ });
+
+ }
+
+ public void setOnChangeListener(OnChangeListener onChangeListener) {
+ this.onchangedListener = onChangeListener;
+ }
+
+ public interface OnChangeListener {
+ void changeText(Product product);
+ }
+
+ /**
+ * 初始化数据
+ */
+ private void initData() {
+ productList = new ArrayList<>();
+ productCategory.add("橘子");
+ productCategory.add("橙子");
+ productCategory.add("柚子");
+ productCategory.add("桃子");
+ productCategory.add("西瓜");
+ productCategory.add("苹果");
+ productCategory.add("梨子");
+ productCategory.add("葡萄");
+ Product product = new Product();
+ product.setImageUrlId(R.drawable.huangyanmiju);
+ product.setProductName("黄岩蜜桔");
+ product.setProductPrice(new BigDecimal("5.5"));
+ product.setProductContent(new String("黄岩蜜桔,浙江省台州市黄岩区特产,黄岩蜜桔为宽皮橘类,果皮橙黄色,肾形,中心柱空,果肉柔软化渣,甜酸适口。"));
+
+ product.setImageUrlId(R.drawable.shatangju);
+ product.setProductName("沙糖桔");
+ product.setProductPrice(new BigDecimal("3.5"));
+ product.setProductContent(new String("沙糖桔,又名:十月桔。原产地在四会市,现在我国的很多地区都有种植。沙糖桔果实扁圆形,顶部有瘤状突起,蒂脐端凹陷,色泽橙黄至橙红,果壁薄,易剥离。沙糖桔尤以四会黄田镇出产的为正宗,唯其鲜美而极甜,无渣,口感细腻,实为佳品。"));
+ Product product1 = new Product();
+ product1.setImageUrlId(R.drawable.bingtangcheng);
+ product1.setProductName("冰糖橙");
+ product1.setProductPrice(new BigDecimal("3.5"));
+ product.setProductContent(new String("又名冰糖柑,原产湖南黔阳县(今洪江市),冰糖橙以品种优良、味浓香甜、果皮薄、不塞牙、肉质脆嫩等而倍受市场欢迎。系当地普通甜橙的变异,湖南栽培较多,四川、重庆、贵州、云南、两广有少量栽培。"));
+
+ product1.setImageUrlId(R.drawable.xuecheng);
+ product1.setProductName("血橙");
+ product1.setProductPrice(new BigDecimal("6.5"));
+ product1.setProductContent(new String("果圆球形,扁圆形或椭圆形,橙红色,果皮难或稍易剥离,中果皮的颜色血红或暗紫红色,但未成熟的果则不着色,果心实或半充实,果肉成熟时橙红或紫红色,味甜或稍偏酸。"));
+ Product product2 = new Product();
+ product2.setImageUrlId(R.drawable.shatianyou);
+ product2.setProductName("沙田柚");
+ product2.setProductPrice(new BigDecimal("5"));
+ product2.setProductContent(new String("果实呈梨或者葫芦形,果肉爽脆,味道浓甜,有其独特的风味。但是水分较少,籽颇多,所以经常被人误解,认为是不新鲜导致水分较少。"));
+
+ product2.setImageUrlId(R.drawable.wendanyou);
+ product2.setProductName("文旦柚");
+ product2.setProductPrice(new BigDecimal("4"));
+ product2.setProductContent(new String("文旦柚果型呈扁平状,有籽,清甜且带有独特的清香味,果粒细小但汁水丰富,吃的时候可以配备一次性手套,免去汁水流满手的尴尬。"));
+ Product product3=new Product();
+ product3.setImageUrlId(R.drawable.shuimitao);
+ product3.setProductName("水蜜桃");
+ product3.setProductPrice(new BigDecimal("6.5"));
+ product3.setProductContent(new String("水蜜桃略呈球形,表面裹着一层细小的绒毛,青里泛白,白里透红。水蜜桃皮很薄,果肉丰富,宜于生食,入口滑润不留渣子。"));
+ product3.setImageUrlId(R.drawable.youtao);
+ product3.setProductName("油桃");
+ product3.setProductPrice(new BigDecimal("7.5"));
+ product3.setProductContent(new String("近球形核果,表面有毛茸,肉质可食,为橙黄色泛红色,直径7.5厘米,有带深麻点和沟纹的核,内含白色种子。 "));
+ Product product4=new Product();
+ product4.setImageUrlId(R.drawable.qilingua);
+ product4.setProductName("麒麟瓜");
+ product4.setProductPrice(new BigDecimal("3"));
+ product4.setProductContent(new String("属于西瓜种类的一种,是经过培植的科研新品种,瓜种对生长环境和土壤以及日照的要求非常高。由于从种下到开花、从开花到收瓜只需60天左右,因此即使种植讲究,但因周期短、口感好、效益见得快,因此温州和海南农民还是很乐意种植的。"));
+ product4.setImageUrlId(R.drawable.heimeirenxigua);
+ product4.setProductName("黑美人西瓜");
+ product4.setProductPrice(new BigDecimal("4.5"));
+ product4.setProductContent(new String("这种西瓜果实呈长椭圆形,瓜较小,果皮深黑绿色,有不明显的条纹。一般较为早熟,果皮薄而坚韧,肉质鲜嫩多汁。"));
+ Product product5=new Product();
+ product5.setImageUrlId(R.drawable.hongfushi);
+ product5.setProductName("红富士");
+ product5.setProductPrice(new BigDecimal("7.5"));
+ product5.setProductContent(new String("富士苹果的特点是体积很大,遍体通红,形状很圆,平均大小如棒球一般。果实的重量中,有9-11%是单糖,而且其果肉紧密,比其他很多苹果变种都要甜美和清脆。"));
+ product5.setImageUrlId(R.drawable.hongjiangjunpinguo);
+ product5.setProductName("红将军苹果");
+ product5.setProductPrice(new BigDecimal("6.0"));
+ product5.setProductContent(new String("它的口感的确比较出众, 果肉呈黄白色, 质地比红富士略松、甜脆爽口、香气馥郁、皮薄多汁。"));
+ Product product6=new Product();
+ product6.setImageUrlId(R.drawable.baili);
+ product6.setProductName("白梨");
+ product6.setProductPrice(new BigDecimal("4.5"));
+ product6.setProductContent(new String("白梨的果实有蜡质光泽,果皮薄,果肉厚,果核小,肉质细腻,酥脆多汁,甘甜爽口,含多种营养成分,具有生津、止渴、润肺、宽肠、强心、利尿等医疗作用。"));
+ product6.setImageUrlId(R.drawable.shali);
+ product6.setProductName("沙梨");
+ product6.setProductPrice(new BigDecimal("5.0"));
+ product6.setProductContent(new String("其肉质酥脆细腻,汁液丰富,酸甜浓郁。并具有显著的润肺止咳、养颜排毒、软化血管、健脑益智、延缓衰老等保健功效。"));
+ Product product7=new Product();
+ product7.setImageUrlId(R.drawable.yangguangmeigui);
+ product7.setProductName("阳光玫瑰葡萄");
+ product7.setProductPrice(new BigDecimal("25"));
+ product7.setProductContent(new String("阳光玫瑰葡萄丰产、稳产,大粒,抗病,耐贮性好,栽培简单。果粒着生紧密,椭圆形,黄绿色,果面有光泽,果粉少。果肉鲜脆多汁,有玫瑰香味,可溶性固形物含量20%左右,最高可达26%,鲜食品质极优。不裂果,不脱粒,丰产,抗逆性较强,综合性状优良。"));
+ product7.setImageUrlId(R.drawable.jufeng);
+ product7.setProductName("巨峰葡萄");
+ product7.setProductPrice(new BigDecimal("19.6"));
+ product7.setProductContent(new String("果粒椭圆形,紫黑色,果粉厚,粒大。果皮中等厚,与果肉易分离;果肉软,肉瓢不明显,汁多,果粒硕大,果色鲜艳,味酸甜,果粒柔软多汁,有草莓香味,营养丰富。"));
+ productList.add(product);
+ productList.add(product1);
+ productList.add(product2);
+ productList.add(product3);
+ productList.add(product4);
+ productList.add(product5);
+ productList.add(product6);
+ productList.add(product7);
+ }
+
+ /**
+ * 初始化组件
+ */
+ private void init() {
+ titleList = findViewById(R.id.category_title_list);
+ adapter = new Adapter(productCategory, CategoryActivity.this);
+ titleList.setAdapter(adapter);
+ }
+}
diff --git a/OrangeSale/app/src/main/java/com/example/orangesale_02/MainActivity.java b/OrangeSale/app/src/main/java/com/example/orangesale_02/MainActivity.java
new file mode 100644
index 0000000..9546c2f
--- /dev/null
+++ b/OrangeSale/app/src/main/java/com/example/orangesale_02/MainActivity.java
@@ -0,0 +1,76 @@
+package com.example.orangesale_02;
+
+import androidx.appcompat.app.AppCompatActivity;
+
+import android.content.Intent;
+import android.database.Cursor;
+import android.database.sqlite.SQLiteDatabase;
+import android.os.Bundle;
+import android.view.View;
+import android.widget.Button;
+import android.widget.EditText;
+import android.widget.Toast;
+
+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:
+
+ if(validateLogin())
+ {
+ Intent intent1=new Intent(MainActivity.this,UserActivity.class);
+ Bundle bundle=new Bundle();
+ MyDatabaseHelper myDatabaseHelper=new MyDatabaseHelper(MainActivity.this);
+ bundle.putString("username",usernameText.getText().toString());
+ bundle=myDatabaseHelper.queryUserInfo(myDatabaseHelper.getReadableDatabase(),bundle);
+ intent1.putExtra("bundlename",bundle);
+ startActivity(intent1);
+
+ }else{
+ Toast.makeText(MainActivity.this,"账号或者密码错误",Toast.LENGTH_SHORT).show();
+ }
+ break;
+ }
+ }
+ private boolean validateLogin()
+ {
+ String username =usernameText.getText().toString();
+ String password=paswdEdit.getText().toString();
+ MyDatabaseHelper myDatabaseHelper=new MyDatabaseHelper(MainActivity.this);
+ SQLiteDatabase sqLiteDatabase=myDatabaseHelper.getReadableDatabase();
+ Cursor cursor=sqLiteDatabase.rawQuery("select *from orange_user where username=? and password=?",new String[]{username,password});
+ if (cursor.getCount()>0)
+ {
+ return true;
+ }
+ return false;
+ }
+
+}
diff --git a/OrangeSale/app/src/main/java/com/example/orangesale_02/MyDatabaseHelper.java b/OrangeSale/app/src/main/java/com/example/orangesale_02/MyDatabaseHelper.java
new file mode 100644
index 0000000..1c1380d
--- /dev/null
+++ b/OrangeSale/app/src/main/java/com/example/orangesale_02/MyDatabaseHelper.java
@@ -0,0 +1,59 @@
+package com.example.orangesale_02;
+
+import android.content.ContentValues;
+import android.content.Context;
+import android.database.Cursor;
+import android.database.sqlite.SQLiteDatabase;
+import android.database.sqlite.SQLiteOpenHelper;
+import android.os.Bundle;
+
+import androidx.annotation.Nullable;
+
+public class MyDatabaseHelper extends SQLiteOpenHelper {
+ public MyDatabaseHelper(@Nullable Context context)
+ {
+ super(context,"orange",null,1);
+ }
+ @Override
+ public void onCreate(SQLiteDatabase db)
+ {
+ String sql="create table orange_user(id integer primary key autoincrement,username varchar(50),password varchar(50),sex varchar(50),city varchar(50))";
+ db.execSQL(sql);
+ }
+
+
+ @Override
+ public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
+
+ }
+public void insertUser(SQLiteDatabase sqLiteDatabase,String username,String password,String sex,String city)
+{
+ ContentValues contentValues=new ContentValues();
+ contentValues.put("username",username);
+ contentValues.put("password",password);
+ contentValues.put("sex",sex);
+ contentValues.put("city",city);
+ sqLiteDatabase.insert("orange_user",null,contentValues);
+ sqLiteDatabase.close();
+}
+public Bundle queryUserInfo(SQLiteDatabase sqLiteDatabase,Bundle bundle)
+{
+
+ String username=bundle.getString("username");
+ Cursor cursor =sqLiteDatabase.rawQuery("select *from orange_user where username=?",new String[]{username});
+ if(cursor!=null)
+ {
+ while(cursor.moveToNext())
+ {
+ bundle.putString("sex",cursor.getString(3));
+ bundle.putString("city",cursor.getString(4));
+ }
+ }
+ cursor.close();
+ sqLiteDatabase.close();
+ return bundle;
+}
+
+
+}
+
diff --git a/OrangeSale/app/src/main/java/com/example/orangesale_02/OrangeUser.java b/OrangeSale/app/src/main/java/com/example/orangesale_02/OrangeUser.java
new file mode 100644
index 0000000..5ad8fcd
--- /dev/null
+++ b/OrangeSale/app/src/main/java/com/example/orangesale_02/OrangeUser.java
@@ -0,0 +1,59 @@
+package com.example.orangesale_02;
+
+public class OrangeUser {
+ private Integer id;
+ private String username;
+ private String password;
+ private String sex;
+ private String city;
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getUsername() {
+ return username;
+ }
+
+ public void setUsername(String username) {
+ this.username = username;
+ }
+
+ public String getPassword() {
+ return password;
+ }
+
+ public void setPassword(String password) {
+ this.password = password;
+ }
+
+ public String getSex() {
+ return sex;
+ }
+
+ public void setSex(String sex) {
+ this.sex = sex;
+ }
+
+ public String getCity() {
+ return city;
+ }
+
+ public void setCity(String city) {
+ this.city = city;
+ }
+
+ @Override
+ public String toString() {
+ return "OrangeUser{" +
+ "username='" + username + '\'' +
+ ", password='" + password + '\'' +
+ ", sex='" + sex + '\'' +
+ ", city='" + city + '\'' +
+ '}';
+ }
+}
diff --git a/OrangeSale/app/src/main/java/com/example/orangesale_02/Product.java b/OrangeSale/app/src/main/java/com/example/orangesale_02/Product.java
new file mode 100644
index 0000000..968d29f
--- /dev/null
+++ b/OrangeSale/app/src/main/java/com/example/orangesale_02/Product.java
@@ -0,0 +1,43 @@
+package com.example.orangesale_02;
+
+import java.math.BigDecimal;
+
+public class Product {
+
+ public String getProductName() {
+ return productName;
+ }
+
+ public void setProductName(String productName) {
+ this.productName = productName;
+ }
+
+ public BigDecimal getProductPrice() {
+ return productPrice;
+ }
+ public String getProductContent() {
+ return productContent;
+ }
+ public void setProductContent(String productContent) {
+ this.productContent = productContent;
+ }
+
+
+ public void setProductPrice(BigDecimal productPrice) {
+ this.productPrice = productPrice;
+ }
+
+ public Integer getImageUrlId() {
+ return imageUrlId;
+ }
+
+ public void setImageUrlId(Integer imageUrlId) {
+ this.imageUrlId = imageUrlId;
+ }
+
+ private Integer imageUrlId;
+ private String productName;
+ private BigDecimal productPrice;
+
+ private String productContent;
+}
diff --git a/OrangeSale/app/src/main/java/com/example/orangesale_02/RegisterActivity.java b/OrangeSale/app/src/main/java/com/example/orangesale_02/RegisterActivity.java
new file mode 100644
index 0000000..0b776df
--- /dev/null
+++ b/OrangeSale/app/src/main/java/com/example/orangesale_02/RegisterActivity.java
@@ -0,0 +1,158 @@
+package com.example.orangesale_02;
+
+import android.content.ContentValues;
+import android.content.Intent;
+import android.database.sqlite.SQLiteDatabase;
+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);
+ MyDatabaseHelper myDatabaseHelper=new MyDatabaseHelper(RegisterActivity.this);
+ SQLiteDatabase sqLiteDatabase=myDatabaseHelper.getReadableDatabase();
+ insertData(sqLiteDatabase,bundle);
+ 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 ? "男" : "女";
+ }
+ private void insertData(SQLiteDatabase sqLiteDatabase,Bundle bundle)
+ {
+ ContentValues contentValues=new ContentValues();
+ contentValues.put("username",bundle.getString("username"));
+ contentValues.put("password",bundle.getString("password"));
+ contentValues.put("sex",bundle.getString("sex"));
+ contentValues.put("city",bundle.getString("city"));
+ sqLiteDatabase.insert("orange_user",null,contentValues);
+ sqLiteDatabase.close();
+ }
+}
diff --git a/OrangeSale/app/src/main/java/com/example/orangesale_02/SetDetailFragment.java b/OrangeSale/app/src/main/java/com/example/orangesale_02/SetDetailFragment.java
new file mode 100644
index 0000000..a022f5f
--- /dev/null
+++ b/OrangeSale/app/src/main/java/com/example/orangesale_02/SetDetailFragment.java
@@ -0,0 +1,69 @@
+package com.example.orangesale_02;
+
+import android.annotation.SuppressLint;
+import android.app.Fragment;
+import android.os.Bundle;
+import android.util.Log;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+import android.widget.ImageView;
+import android.widget.TextView;
+
+import androidx.annotation.NonNull;
+import androidx.annotation.Nullable;
+
+import com.example.orangesale_02.R;
+import com.example.orangesale_02.CategoryActivity;
+
+import java.util.Objects;
+
+public class SetDetailFragment extends Fragment {
+ private View view;
+
+ private ImageView imageView;
+ private ImageView imageView2;
+ private TextView nameText, priceText,contentText;
+ private TextView nameText2, priceText2,contentText2;
+
+ @SuppressLint("SetTextI18n")
+ @Nullable
+ @Override
+ public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
+ view = inflater.inflate(R.layout.categoty_detail_content, container, false);
+
+
+ if (view != null) {
+ init();
+ }
+ CategoryActivity categoryActivity = (CategoryActivity) getActivity();
+ Objects.requireNonNull(categoryActivity).setOnChangeListener(product -> {
+ Log.i("sss", "onCreateView: " + product.getProductName());
+ imageView.setBackgroundResource(product.getImageUrlId());
+ nameText.setText(product.getProductName());
+ priceText.setText(product.getProductPrice().toString());
+ contentText.setText(product.getProductContent());
+ imageView2.setBackgroundResource(product.getImageUrlId());
+ nameText2.setText(product.getProductName());
+ priceText2.setText(product.getProductPrice().toString());
+ contentText2.setText(product.getProductContent());
+ });
+ return view;
+
+ }
+
+ /**
+ * 内容组件初始化
+ */
+ private void init() {
+ imageView = view.findViewById(R.id.category_product_image);
+ nameText = view.findViewById(R.id.category_product_name);
+ priceText = view.findViewById(R.id.category_product_price);
+ contentText = view.findViewById(R.id.category_product_content);
+ imageView2 = view.findViewById(R.id.category_product_image1);
+ nameText2 = view.findViewById(R.id.category_product_name1);
+ priceText2 = view.findViewById(R.id.category_product_price1);
+ contentText2 = view.findViewById(R.id.category_product_content1);
+ }
+
+}
diff --git a/OrangeSale/app/src/main/java/com/example/orangesale_02/UserActivity.java b/OrangeSale/app/src/main/java/com/example/orangesale_02/UserActivity.java
new file mode 100644
index 0000000..d3640a5
--- /dev/null
+++ b/OrangeSale/app/src/main/java/com/example/orangesale_02/UserActivity.java
@@ -0,0 +1,73 @@
+package com.example.orangesale_02;
+
+import android.app.Activity;
+import android.content.Intent;
+import android.os.Bundle;
+import android.view.View;
+import android.widget.ImageView;
+import android.widget.LinearLayout;
+import android.widget.TextView;
+
+import androidx.annotation.Nullable;
+import com.example.orangesale_02.R;
+import com.example.orangesale_02.MainActivity;
+
+public class UserActivity extends Activity implements View.OnClickListener{
+ private ImageView userIconImage;
+ private TextView usernameText, userSexText, userCityText;
+ private LinearLayout usernameLine, userSexline, userCityLine, userPayLine, userSettingLine, userGeneralLine,userSearchProductLine;
+
+
+ @Override
+ protected void onCreate(@Nullable Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.content_user);
+ 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);
+ userSearchProductLine = findViewById(R.id.user_searchProduct);
+ userSearchProductLine.setOnClickListener(this);
+ 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")));
+ }
+
+ public void click(View view)
+ {
+ Intent intent=new Intent(UserActivity.this,MainActivity.class);
+ startActivity(intent);
+ }
+
+ @Override
+ public void onClick(View v) {
+ switch (v.getId()) {
+ case R.id.user_searchProduct:
+ Intent intent1 = new Intent(UserActivity.this, CategoryActivity.class);
+ startActivity(intent1);
+ break;
+ }
+ }
+}
+
+
diff --git a/OrangeSale/app/src/main/res/drawable-v24/address.png b/OrangeSale/app/src/main/res/drawable-v24/address.png
new file mode 100644
index 0000000..7318be0
Binary files /dev/null and b/OrangeSale/app/src/main/res/drawable-v24/address.png differ
diff --git a/OrangeSale/app/src/main/res/drawable-v24/arrow_down.png b/OrangeSale/app/src/main/res/drawable-v24/arrow_down.png
new file mode 100644
index 0000000..6d95bb5
Binary files /dev/null and b/OrangeSale/app/src/main/res/drawable-v24/arrow_down.png differ
diff --git a/OrangeSale/app/src/main/res/drawable-v24/arrow_right.png b/OrangeSale/app/src/main/res/drawable-v24/arrow_right.png
new file mode 100644
index 0000000..84ded85
Binary files /dev/null and b/OrangeSale/app/src/main/res/drawable-v24/arrow_right.png differ
diff --git a/OrangeSale/app/src/main/res/drawable-v24/button_login.jpg b/OrangeSale/app/src/main/res/drawable-v24/button_login.jpg
new file mode 100644
index 0000000..a5220ae
Binary files /dev/null and b/OrangeSale/app/src/main/res/drawable-v24/button_login.jpg differ
diff --git a/OrangeSale/app/src/main/res/drawable-v24/button_register.xml b/OrangeSale/app/src/main/res/drawable-v24/button_register.xml
new file mode 100644
index 0000000..3eb0673
--- /dev/null
+++ b/OrangeSale/app/src/main/res/drawable-v24/button_register.xml
@@ -0,0 +1,14 @@
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+
+
\ No newline at end of file
diff --git a/OrangeSale/app/src/main/res/drawable-v24/chengzi.png b/OrangeSale/app/src/main/res/drawable-v24/chengzi.png
new file mode 100644
index 0000000..fff0306
Binary files /dev/null and b/OrangeSale/app/src/main/res/drawable-v24/chengzi.png differ
diff --git a/OrangeSale/app/src/main/res/drawable-v24/city.png b/OrangeSale/app/src/main/res/drawable-v24/city.png
new file mode 100644
index 0000000..790fb2b
Binary files /dev/null and b/OrangeSale/app/src/main/res/drawable-v24/city.png differ
diff --git a/OrangeSale/app/src/main/res/drawable-v24/ic_launcher_background.xml b/OrangeSale/app/src/main/res/drawable-v24/ic_launcher_background.xml
new file mode 100644
index 0000000..0d025f9
--- /dev/null
+++ b/OrangeSale/app/src/main/res/drawable-v24/ic_launcher_background.xml
@@ -0,0 +1,170 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/OrangeSale/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/OrangeSale/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
new file mode 100644
index 0000000..1f6bb29
--- /dev/null
+++ b/OrangeSale/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/OrangeSale/app/src/main/res/drawable-v24/img.png b/OrangeSale/app/src/main/res/drawable-v24/img.png
new file mode 100644
index 0000000..e5011cf
Binary files /dev/null and b/OrangeSale/app/src/main/res/drawable-v24/img.png differ
diff --git a/OrangeSale/app/src/main/res/drawable-v24/juzi.png b/OrangeSale/app/src/main/res/drawable-v24/juzi.png
new file mode 100644
index 0000000..106df92
Binary files /dev/null and b/OrangeSale/app/src/main/res/drawable-v24/juzi.png differ
diff --git a/OrangeSale/app/src/main/res/drawable-v24/lizi.jpg b/OrangeSale/app/src/main/res/drawable-v24/lizi.jpg
new file mode 100644
index 0000000..b0ffb1e
Binary files /dev/null and b/OrangeSale/app/src/main/res/drawable-v24/lizi.jpg differ
diff --git a/OrangeSale/app/src/main/res/drawable-v24/orange.jpg b/OrangeSale/app/src/main/res/drawable-v24/orange.jpg
new file mode 100644
index 0000000..b4099c8
Binary files /dev/null and b/OrangeSale/app/src/main/res/drawable-v24/orange.jpg differ
diff --git a/OrangeSale/app/src/main/res/drawable-v24/password.png b/OrangeSale/app/src/main/res/drawable-v24/password.png
new file mode 100644
index 0000000..1c6c4f5
Binary files /dev/null and b/OrangeSale/app/src/main/res/drawable-v24/password.png differ
diff --git a/OrangeSale/app/src/main/res/drawable-v24/pingguo.jpg b/OrangeSale/app/src/main/res/drawable-v24/pingguo.jpg
new file mode 100644
index 0000000..8fa7d8a
Binary files /dev/null and b/OrangeSale/app/src/main/res/drawable-v24/pingguo.jpg differ
diff --git a/OrangeSale/app/src/main/res/drawable-v24/putao.jpg b/OrangeSale/app/src/main/res/drawable-v24/putao.jpg
new file mode 100644
index 0000000..3f26503
Binary files /dev/null and b/OrangeSale/app/src/main/res/drawable-v24/putao.jpg differ
diff --git a/OrangeSale/app/src/main/res/drawable-v24/setting.png b/OrangeSale/app/src/main/res/drawable-v24/setting.png
new file mode 100644
index 0000000..34c2f2f
Binary files /dev/null and b/OrangeSale/app/src/main/res/drawable-v24/setting.png differ
diff --git a/OrangeSale/app/src/main/res/drawable-v24/sex.png b/OrangeSale/app/src/main/res/drawable-v24/sex.png
new file mode 100644
index 0000000..acb8197
Binary files /dev/null and b/OrangeSale/app/src/main/res/drawable-v24/sex.png differ
diff --git a/OrangeSale/app/src/main/res/drawable-v24/shop_car.png b/OrangeSale/app/src/main/res/drawable-v24/shop_car.png
new file mode 100644
index 0000000..8851375
Binary files /dev/null and b/OrangeSale/app/src/main/res/drawable-v24/shop_car.png differ
diff --git a/OrangeSale/app/src/main/res/drawable-v24/spinner_drop_down_shape.xml b/OrangeSale/app/src/main/res/drawable-v24/spinner_drop_down_shape.xml
new file mode 100644
index 0000000..64306b1
--- /dev/null
+++ b/OrangeSale/app/src/main/res/drawable-v24/spinner_drop_down_shape.xml
@@ -0,0 +1,16 @@
+
+
+ -
+
+
+
+
+
+
+ -
+
+
+
\ No newline at end of file
diff --git a/OrangeSale/app/src/main/res/drawable-v24/sure_apssword.png b/OrangeSale/app/src/main/res/drawable-v24/sure_apssword.png
new file mode 100644
index 0000000..0e7cee9
Binary files /dev/null and b/OrangeSale/app/src/main/res/drawable-v24/sure_apssword.png differ
diff --git a/OrangeSale/app/src/main/res/drawable-v24/taozi.jpg b/OrangeSale/app/src/main/res/drawable-v24/taozi.jpg
new file mode 100644
index 0000000..c03ef9c
Binary files /dev/null and b/OrangeSale/app/src/main/res/drawable-v24/taozi.jpg differ
diff --git a/OrangeSale/app/src/main/res/drawable-v24/taozi2.jpg b/OrangeSale/app/src/main/res/drawable-v24/taozi2.jpg
new file mode 100644
index 0000000..741581d
Binary files /dev/null and b/OrangeSale/app/src/main/res/drawable-v24/taozi2.jpg differ
diff --git a/OrangeSale/app/src/main/res/drawable-v24/user.png b/OrangeSale/app/src/main/res/drawable-v24/user.png
new file mode 100644
index 0000000..47d8362
Binary files /dev/null and b/OrangeSale/app/src/main/res/drawable-v24/user.png differ
diff --git a/OrangeSale/app/src/main/res/drawable-v24/user_account.png b/OrangeSale/app/src/main/res/drawable-v24/user_account.png
new file mode 100644
index 0000000..e70142a
Binary files /dev/null and b/OrangeSale/app/src/main/res/drawable-v24/user_account.png differ
diff --git a/OrangeSale/app/src/main/res/drawable-v24/user_general.png b/OrangeSale/app/src/main/res/drawable-v24/user_general.png
new file mode 100644
index 0000000..cf57947
Binary files /dev/null and b/OrangeSale/app/src/main/res/drawable-v24/user_general.png differ
diff --git a/OrangeSale/app/src/main/res/drawable-v24/user_icon.png b/OrangeSale/app/src/main/res/drawable-v24/user_icon.png
new file mode 100644
index 0000000..49442af
Binary files /dev/null and b/OrangeSale/app/src/main/res/drawable-v24/user_icon.png differ
diff --git a/OrangeSale/app/src/main/res/drawable-v24/user_pay.png b/OrangeSale/app/src/main/res/drawable-v24/user_pay.png
new file mode 100644
index 0000000..3fd6f50
Binary files /dev/null and b/OrangeSale/app/src/main/res/drawable-v24/user_pay.png differ
diff --git a/OrangeSale/app/src/main/res/drawable-v24/user_sex.png b/OrangeSale/app/src/main/res/drawable-v24/user_sex.png
new file mode 100644
index 0000000..da0e318
Binary files /dev/null and b/OrangeSale/app/src/main/res/drawable-v24/user_sex.png differ
diff --git a/OrangeSale/app/src/main/res/drawable-v24/xigua.png b/OrangeSale/app/src/main/res/drawable-v24/xigua.png
new file mode 100644
index 0000000..b6d8404
Binary files /dev/null and b/OrangeSale/app/src/main/res/drawable-v24/xigua.png differ
diff --git a/OrangeSale/app/src/main/res/drawable-v24/youzi.png b/OrangeSale/app/src/main/res/drawable-v24/youzi.png
new file mode 100644
index 0000000..53df959
Binary files /dev/null and b/OrangeSale/app/src/main/res/drawable-v24/youzi.png differ
diff --git a/OrangeSale/app/src/main/res/drawable/baili.jpg b/OrangeSale/app/src/main/res/drawable/baili.jpg
new file mode 100644
index 0000000..1bf4f22
Binary files /dev/null and b/OrangeSale/app/src/main/res/drawable/baili.jpg differ
diff --git a/OrangeSale/app/src/main/res/drawable/bingtangcheng.png b/OrangeSale/app/src/main/res/drawable/bingtangcheng.png
new file mode 100644
index 0000000..22c1767
Binary files /dev/null and b/OrangeSale/app/src/main/res/drawable/bingtangcheng.png differ
diff --git a/OrangeSale/app/src/main/res/drawable/heimeirenxigua.jpg b/OrangeSale/app/src/main/res/drawable/heimeirenxigua.jpg
new file mode 100644
index 0000000..20b1ce5
Binary files /dev/null and b/OrangeSale/app/src/main/res/drawable/heimeirenxigua.jpg differ
diff --git a/OrangeSale/app/src/main/res/drawable/hongfushi.jpg b/OrangeSale/app/src/main/res/drawable/hongfushi.jpg
new file mode 100644
index 0000000..c6cd783
Binary files /dev/null and b/OrangeSale/app/src/main/res/drawable/hongfushi.jpg differ
diff --git a/OrangeSale/app/src/main/res/drawable/hongjiangjunpinguo.png b/OrangeSale/app/src/main/res/drawable/hongjiangjunpinguo.png
new file mode 100644
index 0000000..5e12f4c
Binary files /dev/null and b/OrangeSale/app/src/main/res/drawable/hongjiangjunpinguo.png differ
diff --git a/OrangeSale/app/src/main/res/drawable/huangyanmiju.jpg b/OrangeSale/app/src/main/res/drawable/huangyanmiju.jpg
new file mode 100644
index 0000000..269b898
Binary files /dev/null and b/OrangeSale/app/src/main/res/drawable/huangyanmiju.jpg differ
diff --git a/OrangeSale/app/src/main/res/drawable/ic_launcher_background.xml b/OrangeSale/app/src/main/res/drawable/ic_launcher_background.xml
new file mode 100644
index 0000000..0d025f9
--- /dev/null
+++ b/OrangeSale/app/src/main/res/drawable/ic_launcher_background.xml
@@ -0,0 +1,170 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/OrangeSale/app/src/main/res/drawable/jufeng.jpg b/OrangeSale/app/src/main/res/drawable/jufeng.jpg
new file mode 100644
index 0000000..2ef1810
Binary files /dev/null and b/OrangeSale/app/src/main/res/drawable/jufeng.jpg differ
diff --git a/OrangeSale/app/src/main/res/drawable/qilingua.jpg b/OrangeSale/app/src/main/res/drawable/qilingua.jpg
new file mode 100644
index 0000000..7586e55
Binary files /dev/null and b/OrangeSale/app/src/main/res/drawable/qilingua.jpg differ
diff --git a/OrangeSale/app/src/main/res/drawable/shali.jpg b/OrangeSale/app/src/main/res/drawable/shali.jpg
new file mode 100644
index 0000000..1c03ceb
Binary files /dev/null and b/OrangeSale/app/src/main/res/drawable/shali.jpg differ
diff --git a/OrangeSale/app/src/main/res/drawable/shatangju.png b/OrangeSale/app/src/main/res/drawable/shatangju.png
new file mode 100644
index 0000000..b924b8e
Binary files /dev/null and b/OrangeSale/app/src/main/res/drawable/shatangju.png differ
diff --git a/OrangeSale/app/src/main/res/drawable/shatianyou.png b/OrangeSale/app/src/main/res/drawable/shatianyou.png
new file mode 100644
index 0000000..097ce73
Binary files /dev/null and b/OrangeSale/app/src/main/res/drawable/shatianyou.png differ
diff --git a/OrangeSale/app/src/main/res/drawable/shuimitao.png b/OrangeSale/app/src/main/res/drawable/shuimitao.png
new file mode 100644
index 0000000..1d229ce
Binary files /dev/null and b/OrangeSale/app/src/main/res/drawable/shuimitao.png differ
diff --git a/OrangeSale/app/src/main/res/drawable/taozi.png b/OrangeSale/app/src/main/res/drawable/taozi.png
new file mode 100644
index 0000000..106eb3e
Binary files /dev/null and b/OrangeSale/app/src/main/res/drawable/taozi.png differ
diff --git a/OrangeSale/app/src/main/res/drawable/wendanyou.png b/OrangeSale/app/src/main/res/drawable/wendanyou.png
new file mode 100644
index 0000000..e04e0a2
Binary files /dev/null and b/OrangeSale/app/src/main/res/drawable/wendanyou.png differ
diff --git a/OrangeSale/app/src/main/res/drawable/xuecheng.png b/OrangeSale/app/src/main/res/drawable/xuecheng.png
new file mode 100644
index 0000000..4db3a6d
Binary files /dev/null and b/OrangeSale/app/src/main/res/drawable/xuecheng.png differ
diff --git a/OrangeSale/app/src/main/res/drawable/yangguangmeigui.jpg b/OrangeSale/app/src/main/res/drawable/yangguangmeigui.jpg
new file mode 100644
index 0000000..18176d2
Binary files /dev/null and b/OrangeSale/app/src/main/res/drawable/yangguangmeigui.jpg differ
diff --git a/OrangeSale/app/src/main/res/drawable/youtao.jpg b/OrangeSale/app/src/main/res/drawable/youtao.jpg
new file mode 100644
index 0000000..40ca33e
Binary files /dev/null and b/OrangeSale/app/src/main/res/drawable/youtao.jpg differ
diff --git a/OrangeSale/app/src/main/res/layout/activity_main.xml b/OrangeSale/app/src/main/res/layout/activity_main.xml
new file mode 100644
index 0000000..4fc2444
--- /dev/null
+++ b/OrangeSale/app/src/main/res/layout/activity_main.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/OrangeSale/app/src/main/res/layout/category_detail.xml b/OrangeSale/app/src/main/res/layout/category_detail.xml
new file mode 100644
index 0000000..17091e2
--- /dev/null
+++ b/OrangeSale/app/src/main/res/layout/category_detail.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/OrangeSale/app/src/main/res/layout/category_title.xml b/OrangeSale/app/src/main/res/layout/category_title.xml
new file mode 100644
index 0000000..738b5f3
--- /dev/null
+++ b/OrangeSale/app/src/main/res/layout/category_title.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/OrangeSale/app/src/main/res/layout/categoty_detail_content.xml b/OrangeSale/app/src/main/res/layout/categoty_detail_content.xml
new file mode 100644
index 0000000..5ba22d4
--- /dev/null
+++ b/OrangeSale/app/src/main/res/layout/categoty_detail_content.xml
@@ -0,0 +1,110 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/OrangeSale/app/src/main/res/layout/content_category.xml b/OrangeSale/app/src/main/res/layout/content_category.xml
new file mode 100644
index 0000000..7c8a14a
--- /dev/null
+++ b/OrangeSale/app/src/main/res/layout/content_category.xml
@@ -0,0 +1,48 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/OrangeSale/app/src/main/res/layout/content_user.xml b/OrangeSale/app/src/main/res/layout/content_user.xml
new file mode 100644
index 0000000..5f2b98e
--- /dev/null
+++ b/OrangeSale/app/src/main/res/layout/content_user.xml
@@ -0,0 +1,235 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/OrangeSale/app/src/main/res/layout/user_login.xml b/OrangeSale/app/src/main/res/layout/user_login.xml
new file mode 100644
index 0000000..a0e2713
--- /dev/null
+++ b/OrangeSale/app/src/main/res/layout/user_login.xml
@@ -0,0 +1,93 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/OrangeSale/app/src/main/res/layout/user_register.xml b/OrangeSale/app/src/main/res/layout/user_register.xml
new file mode 100644
index 0000000..c364928
--- /dev/null
+++ b/OrangeSale/app/src/main/res/layout/user_register.xml
@@ -0,0 +1,157 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/OrangeSale/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/OrangeSale/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
new file mode 100644
index 0000000..eca70cf
--- /dev/null
+++ b/OrangeSale/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/OrangeSale/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/OrangeSale/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
new file mode 100644
index 0000000..eca70cf
--- /dev/null
+++ b/OrangeSale/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/OrangeSale/app/src/main/res/mipmap-hdpi/ic_launcher.png b/OrangeSale/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000..898f3ed
Binary files /dev/null and b/OrangeSale/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/OrangeSale/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/OrangeSale/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
new file mode 100644
index 0000000..dffca36
Binary files /dev/null and b/OrangeSale/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ
diff --git a/OrangeSale/app/src/main/res/mipmap-mdpi/ic_launcher.png b/OrangeSale/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000..64ba76f
Binary files /dev/null and b/OrangeSale/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/OrangeSale/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/OrangeSale/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
new file mode 100644
index 0000000..dae5e08
Binary files /dev/null and b/OrangeSale/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ
diff --git a/OrangeSale/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/OrangeSale/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..e5ed465
Binary files /dev/null and b/OrangeSale/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/OrangeSale/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/OrangeSale/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..14ed0af
Binary files /dev/null and b/OrangeSale/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ
diff --git a/OrangeSale/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/OrangeSale/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..b0907ca
Binary files /dev/null and b/OrangeSale/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/OrangeSale/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/OrangeSale/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..d8ae031
Binary files /dev/null and b/OrangeSale/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ
diff --git a/OrangeSale/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/OrangeSale/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000..2c18de9
Binary files /dev/null and b/OrangeSale/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/OrangeSale/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/OrangeSale/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..beed3cd
Binary files /dev/null and b/OrangeSale/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ
diff --git a/OrangeSale/app/src/main/res/values/colors.xml b/OrangeSale/app/src/main/res/values/colors.xml
new file mode 100644
index 0000000..69b2233
--- /dev/null
+++ b/OrangeSale/app/src/main/res/values/colors.xml
@@ -0,0 +1,6 @@
+
+
+ #008577
+ #00574B
+ #D81B60
+
diff --git a/OrangeSale/app/src/main/res/values/strings.xml b/OrangeSale/app/src/main/res/values/strings.xml
new file mode 100644
index 0000000..bdb12f5
--- /dev/null
+++ b/OrangeSale/app/src/main/res/values/strings.xml
@@ -0,0 +1,3 @@
+
+ 橙一色
+
diff --git a/OrangeSale/app/src/main/res/values/styles.xml b/OrangeSale/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..5885930
--- /dev/null
+++ b/OrangeSale/app/src/main/res/values/styles.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
diff --git a/OrangeSale/app/src/test/java/com/example/orangesale_02/ExampleUnitTest.java b/OrangeSale/app/src/test/java/com/example/orangesale_02/ExampleUnitTest.java
new file mode 100644
index 0000000..96a2cdb
--- /dev/null
+++ b/OrangeSale/app/src/test/java/com/example/orangesale_02/ExampleUnitTest.java
@@ -0,0 +1,17 @@
+package com.example.orangesale_02;
+
+import org.junit.Test;
+
+import static org.junit.Assert.*;
+
+/**
+ * Example local unit test, which will execute on the development machine (host).
+ *
+ * @see Testing documentation
+ */
+public class ExampleUnitTest {
+ @Test
+ public void addition_isCorrect() {
+ assertEquals(4, 2 + 2);
+ }
+}
\ No newline at end of file
diff --git a/OrangeSale/build.gradle b/OrangeSale/build.gradle
new file mode 100644
index 0000000..fb516be
--- /dev/null
+++ b/OrangeSale/build.gradle
@@ -0,0 +1,27 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+
+buildscript {
+ repositories {
+ google()
+ jcenter()
+
+ }
+ dependencies {
+ classpath 'com.android.tools.build:gradle:3.5.2'
+
+ // NOTE: Do not place your application dependencies here; they belong
+ // in the individual module build.gradle files
+ }
+}
+
+allprojects {
+ repositories {
+ google()
+ jcenter()
+
+ }
+}
+
+task clean(type: Delete) {
+ delete rootProject.buildDir
+}
diff --git a/OrangeSale/gradle.properties b/OrangeSale/gradle.properties
new file mode 100644
index 0000000..199d16e
--- /dev/null
+++ b/OrangeSale/gradle.properties
@@ -0,0 +1,20 @@
+# Project-wide Gradle settings.
+# IDE (e.g. Android Studio) users:
+# Gradle settings configured through the IDE *will override*
+# any settings specified in this file.
+# For more details on how to configure your build environment visit
+# http://www.gradle.org/docs/current/userguide/build_environment.html
+# Specifies the JVM arguments used for the daemon process.
+# The setting is particularly useful for tweaking memory settings.
+org.gradle.jvmargs=-Xmx1536m
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. More details, visit
+# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
+# org.gradle.parallel=true
+# AndroidX package structure to make it clearer which packages are bundled with the
+# Android operating system, and which are packaged with your app's APK
+# https://developer.android.com/topic/libraries/support-library/androidx-rn
+android.useAndroidX=true
+# Automatically convert third-party libraries to use AndroidX
+android.enableJetifier=true
+
diff --git a/OrangeSale/gradle/wrapper/gradle-wrapper.jar b/OrangeSale/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 0000000..f6b961f
Binary files /dev/null and b/OrangeSale/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/OrangeSale/gradle/wrapper/gradle-wrapper.properties b/OrangeSale/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..4228f75
--- /dev/null
+++ b/OrangeSale/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Tue Jan 26 19:41:58 CST 2021
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
diff --git a/OrangeSale/gradlew b/OrangeSale/gradlew
new file mode 100644
index 0000000..cccdd3d
--- /dev/null
+++ b/OrangeSale/gradlew
@@ -0,0 +1,172 @@
+#!/usr/bin/env sh
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# Attempt to set APP_HOME
+# Resolve links: $0 may be a link
+PRG="$0"
+# Need this for relative symlinks.
+while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG=`dirname "$PRG"`"/$link"
+ fi
+done
+SAVED="`pwd`"
+cd "`dirname \"$PRG\"`/" >/dev/null
+APP_HOME="`pwd -P`"
+cd "$SAVED" >/dev/null
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS=""
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD="maximum"
+
+warn () {
+ echo "$*"
+}
+
+die () {
+ echo
+ echo "$*"
+ echo
+ exit 1
+}
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+nonstop=false
+case "`uname`" in
+ CYGWIN* )
+ cygwin=true
+ ;;
+ Darwin* )
+ darwin=true
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+ NONSTOP* )
+ nonstop=true
+ ;;
+esac
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD="java"
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
+ MAX_FD_LIMIT=`ulimit -H -n`
+ if [ $? -eq 0 ] ; then
+ if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
+ MAX_FD="$MAX_FD_LIMIT"
+ fi
+ ulimit -n $MAX_FD
+ if [ $? -ne 0 ] ; then
+ warn "Could not set maximum file descriptor limit: $MAX_FD"
+ fi
+ else
+ warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
+ fi
+fi
+
+# For Darwin, add options to specify how the application appears in the dock
+if $darwin; then
+ GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
+fi
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin ; then
+ APP_HOME=`cygpath --path --mixed "$APP_HOME"`
+ CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
+ JAVACMD=`cygpath --unix "$JAVACMD"`
+
+ # We build the pattern for arguments to be converted via cygpath
+ ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
+ SEP=""
+ for dir in $ROOTDIRSRAW ; do
+ ROOTDIRS="$ROOTDIRS$SEP$dir"
+ SEP="|"
+ done
+ OURCYGPATTERN="(^($ROOTDIRS))"
+ # Add a user-defined pattern to the cygpath arguments
+ if [ "$GRADLE_CYGPATTERN" != "" ] ; then
+ OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
+ fi
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ i=0
+ for arg in "$@" ; do
+ CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
+ CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
+
+ if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
+ eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
+ else
+ eval `echo args$i`="\"$arg\""
+ fi
+ i=$((i+1))
+ done
+ case $i in
+ (0) set -- ;;
+ (1) set -- "$args0" ;;
+ (2) set -- "$args0" "$args1" ;;
+ (3) set -- "$args0" "$args1" "$args2" ;;
+ (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
+ (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
+ (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
+ (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
+ (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
+ (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
+ esac
+fi
+
+# Escape application args
+save () {
+ for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
+ echo " "
+}
+APP_ARGS=$(save "$@")
+
+# Collect all arguments for the java command, following the shell quoting and substitution rules
+eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
+
+# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
+if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
+ cd "$(dirname "$0")"
+fi
+
+exec "$JAVACMD" "$@"
diff --git a/OrangeSale/gradlew.bat b/OrangeSale/gradlew.bat
new file mode 100644
index 0000000..f955316
--- /dev/null
+++ b/OrangeSale/gradlew.bat
@@ -0,0 +1,84 @@
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS=
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto init
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto init
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:init
+@rem Get command-line arguments, handling Windows variants
+
+if not "%OS%" == "Windows_NT" goto win9xME_args
+
+:win9xME_args
+@rem Slurp the command line arguments.
+set CMD_LINE_ARGS=
+set _SKIP=2
+
+:win9xME_args_slurp
+if "x%~1" == "x" goto execute
+
+set CMD_LINE_ARGS=%*
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/OrangeSale/settings.gradle b/OrangeSale/settings.gradle
new file mode 100644
index 0000000..0425c39
--- /dev/null
+++ b/OrangeSale/settings.gradle
@@ -0,0 +1,2 @@
+include ':app'
+rootProject.name='OrangeSale_02'