diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index a1441c3..2ab6504 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -12,6 +12,7 @@
+
@@ -22,6 +23,8 @@
+
\ No newline at end of file
diff --git a/app/src/main/java/com/example/Cat/activity/IndexActivity.java b/app/src/main/java/com/example/Cat/activity/IndexActivity.java
new file mode 100644
index 0000000..14c8213
--- /dev/null
+++ b/app/src/main/java/com/example/Cat/activity/IndexActivity.java
@@ -0,0 +1,138 @@
+package com.example.Cat.activity;
+
+import android.app.Activity;
+import android.app.FragmentTransaction;
+import android.content.Intent;
+import android.os.Bundle;
+import android.view.View;
+import android.widget.Button;
+import android.widget.LinearLayout;
+import android.widget.TextView;
+
+import androidx.annotation.Nullable;
+
+import com.example.Cat.R;
+import com.example.Cat.fragment.IndexFragment;
+import com.example.Cat.fragment.PearsonFragment;
+import com.example.Cat.fragment.ProductFragment;
+import com.example.Cat.fragment.ShoppingCartFragment;
+
+
+public class IndexActivity extends Activity implements View.OnClickListener {
+ private IndexFragment indexFragment;
+ private ProductFragment productFragment;
+ private ShoppingCartFragment shoppingCartFragment;
+ private PearsonFragment pearsonFragment;
+ String username;
+ private LinearLayout indexLine, productLine, shoppingCartLine, pearsonLine;
+ Intent intent_message;
+ TextView usernameText;
+ @Override
+ public void onCreate(@Nullable Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_index);
+ init();
+ initIndexFragment();
+
+ // Thread thread = new Thread(runnable);
+ //thread.start();
+ }
+
+ /**
+ * 组件初始化
+ */
+ private void init() {
+ indexLine = findViewById(R.id.content_index);
+ indexLine.setOnClickListener(this);
+ productLine = findViewById(R.id.content_product);
+ productLine.setOnClickListener(this);
+ shoppingCartLine = findViewById(R.id.content_cart);
+ shoppingCartLine.setOnClickListener(this);
+ pearsonLine = findViewById(R.id.content_pearson);
+ pearsonLine.setOnClickListener(this);
+ }
+
+ @Override
+ public void onClick(View v) {
+ switch (v.getId()) {
+ case R.id.content_index:
+ initIndexFragment();
+ break;
+ case R.id.content_product:
+ initproductFragment();
+ break;
+ case R.id.content_cart:
+ initshoppingCartFragment();
+ break;
+ case R.id.content_pearson:
+ initpearsonFragment();
+ break;
+
+ }
+ }
+
+ /**
+ * 初始化首页Fragment
+ */
+ private void initIndexFragment() {
+ //开启事务,fragment的控制是由事务来实现的
+ FragmentTransaction transaction = getFragmentManager().beginTransaction();
+ if (indexFragment == null) {
+ indexFragment = new IndexFragment();
+ }
+ transaction.replace(R.id.main_content, indexFragment);
+ transaction.commit();
+ }
+
+ /**
+ * 初始化产品Fragment
+ */
+ private void initproductFragment() {
+ //开启事务,fragment的控制是由事务来实现的
+ FragmentTransaction transaction = getFragmentManager().beginTransaction();
+ if (productFragment == null) {
+ productFragment = new ProductFragment();
+ }
+ transaction.replace(R.id.main_content, productFragment);
+ transaction.commit();
+ }
+
+ /**
+ * 初始化购物车Fragment
+ */
+ private void initshoppingCartFragment() {
+ //开启事务,fragment的控制是由事务来实现的
+ FragmentTransaction transaction = getFragmentManager().beginTransaction();
+ if (shoppingCartFragment == null) {
+ shoppingCartFragment = new ShoppingCartFragment();
+ }
+ transaction.replace(R.id.main_content, shoppingCartFragment);
+ transaction.commit();
+ }
+
+ /**
+ * 初始化个人Fragment
+ */
+ private void initpearsonFragment() {
+ //开启事务,fragment的控制是由事务来实现的
+ FragmentTransaction transaction = getFragmentManager().beginTransaction();
+ if (pearsonFragment == null) {
+ Intent intent = IndexActivity.this.getIntent();
+ Bundle bundle = intent.getExtras();
+ pearsonFragment = new PearsonFragment();
+ pearsonFragment.setArguments(bundle);
+ }
+ usernameText=pearsonFragment.usernameText;
+ transaction.replace(R.id.main_content, pearsonFragment);
+ transaction.commit();
+ }
+// public Intent getIntentm(){
+// intent_message=new Intent(this,UserMessageActivity.class);
+// return intent_message;
+// }
+// public void intentopration(){
+// getIntentm().putExtra("username",usernameText.getText().toString());
+// }
+
+
+}
diff --git a/app/src/main/java/com/example/Cat/activity/MainActivity.java b/app/src/main/java/com/example/Cat/activity/MainActivity.java
index 492c76b..253e4b1 100644
--- a/app/src/main/java/com/example/Cat/activity/MainActivity.java
+++ b/app/src/main/java/com/example/Cat/activity/MainActivity.java
@@ -57,7 +57,7 @@ public class MainActivity extends AppCompatActivity implements View.OnClickListe
//验证密码是否正确
public void Verification(){
//UserInfo info;
- Intent intent = new Intent(MainActivity.this, UserActivity.class);
+ Intent intent = new Intent(MainActivity.this, IndexActivity.class);
//intent.putExtra("username",usernameText.getText().toString());
User_Database user=new User_Database(MainActivity.this);
SQLiteDatabase sqLiteDatabase=user.getReadableDatabase();
diff --git a/app/src/main/java/com/example/Cat/adapter/ProductAdapter.java b/app/src/main/java/com/example/Cat/adapter/ProductAdapter.java
new file mode 100644
index 0000000..b9031cd
--- /dev/null
+++ b/app/src/main/java/com/example/Cat/adapter/ProductAdapter.java
@@ -0,0 +1,70 @@
+package com.example.Cat.adapter;
+
+import android.content.Context;
+import android.util.Log;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+import android.widget.BaseAdapter;
+import android.widget.ImageView;
+import android.widget.TextView;
+
+import com.example.Cat.R;
+import com.example.Cat.entity.Product;
+
+import java.util.List;
+
+public class ProductAdapter extends BaseAdapter {
+ private List productList;
+ private LayoutInflater layoutInflater;
+
+ public ProductAdapter(Context context, List productList) {
+ this.productList = productList;
+ this.layoutInflater = LayoutInflater.from(context);
+ }
+
+ @Override
+ public int getCount() {
+ return productList.size();
+ }
+
+ @Override
+ public Object getItem(int position) {
+ return productList.get(position);
+ }
+
+ @Override
+ public long getItemId(int position) {
+ return position;
+ }
+
+ @Override
+ public View getView(int position, View convertView, ViewGroup parent) {
+ ViewHolder viewHolder;
+ if (convertView == null) {
+ Log.i("aa", "getView: "+"aa");
+ convertView = layoutInflater.inflate(R.layout.categoty_detail_content, null);
+ viewHolder = new ViewHolder();
+ viewHolder.productImage = convertView.findViewById(R.id.category_product_image);
+ viewHolder.productName = convertView.findViewById(R.id.category_product_name);
+ viewHolder.productPrice = convertView.findViewById(R.id.category_product_price);
+ convertView.setTag(viewHolder);
+ } else {
+ viewHolder = (ViewHolder) convertView.getTag();
+ }
+ Product product = productList.get(position);
+ Log.i("product", "getView: "+product.toString());
+ if (product != null) {
+ viewHolder.productImage.setBackgroundResource(product.getImageUrlId());
+ viewHolder.productName.setText(product.getProductName());
+ viewHolder.productPrice.setText(String.valueOf(product.getProductPrice()));
+ }
+ return convertView;
+ }
+
+ class ViewHolder {
+ ImageView productImage;
+ TextView productName, productPrice;
+ }
+}
+
diff --git a/app/src/main/java/com/example/Cat/entity/Product.java b/app/src/main/java/com/example/Cat/entity/Product.java
new file mode 100644
index 0000000..731b35f
--- /dev/null
+++ b/app/src/main/java/com/example/Cat/entity/Product.java
@@ -0,0 +1,44 @@
+package com.example.Cat.entity;
+
+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 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;
+
+ @Override
+ public String toString() {
+ return "Product{" +
+ "imageUrlId=" + imageUrlId +
+ ", productName='" + productName + '\'' +
+ ", productPrice=" + productPrice +
+ '}';
+ }
+}
+
diff --git a/app/src/main/java/com/example/Cat/fragment/IndexFragment.java b/app/src/main/java/com/example/Cat/fragment/IndexFragment.java
new file mode 100644
index 0000000..c6279dc
--- /dev/null
+++ b/app/src/main/java/com/example/Cat/fragment/IndexFragment.java
@@ -0,0 +1,120 @@
+package com.example.Cat.fragment;
+
+import android.app.Fragment;
+import android.os.Bundle;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+import android.widget.GridView;
+import android.widget.LinearLayout;
+import android.widget.SearchView;
+
+import androidx.annotation.NonNull;
+import androidx.annotation.Nullable;
+
+import com.example.Cat.R;
+import com.example.Cat.adapter.ProductAdapter;
+import com.example.Cat.entity.Product;
+
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+
+
+public class IndexFragment extends Fragment implements View.OnClickListener {
+ private SearchView searchView;
+ private LinearLayout orangeLine, youziLine, juziLine, xiguaLine, liLine, appleLine, lemonLine, mangguoLine;
+ private GridView gridView;
+ private ProductAdapter productAdapter;
+ private List productList;
+
+ @Nullable
+ @Override
+ public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
+ View view = LayoutInflater.from(getActivity()).inflate(R.layout.content_index, container, false);
+ init(view);
+ return view;
+ }
+
+ /**
+ * 初始化组件
+ */
+ private void init(View view) {
+ searchView = view.findViewById(R.id.searchView);
+ searchView.setOnClickListener(this);
+ orangeLine = view.findViewById(R.id.wjy);
+ orangeLine.setOnClickListener(this);
+ youziLine = view.findViewById(R.id.ml);
+ youziLine.setOnClickListener(this);
+ juziLine = view.findViewById(R.id.ml2);
+ juziLine.setOnClickListener(this);
+ xiguaLine = view.findViewById(R.id.ml3);
+ xiguaLine.setOnClickListener(this);
+ liLine = view.findViewById(R.id.mlp);
+ liLine.setOnClickListener(this);
+ lemonLine = view.findViewById(R.id.mlp2);
+ lemonLine.setOnClickListener(this);
+ mangguoLine = view.findViewById(R.id.wj);
+ mangguoLine.setOnClickListener(this);
+ appleLine = view.findViewById(R.id.wj2);
+ appleLine.setOnClickListener(this);
+ gridView = view.findViewById(R.id.index_famous_gridview);
+ initData();
+ productAdapter = new ProductAdapter(getActivity(), productList);
+ gridView.setAdapter(productAdapter);
+ }
+
+
+ @Override
+ public void onClick(View v) {
+
+ }
+
+ /**
+ * 初始化商品数据
+ */
+ private void initData() {
+ productList = new ArrayList<>();
+ Product product = new Product();
+ product.setImageUrlId(R.drawable.mlp);
+ product.setProductName("猫粮盆");
+ product.setProductPrice(new BigDecimal("9.9"));
+ Product product1 = new Product();
+ product1.setImageUrlId(R.drawable.ml);
+ product1.setProductName("猫粮");
+ product1.setProductPrice(new BigDecimal("29.9"));
+ Product product2 = new Product();
+ product2.setImageUrlId(R.drawable.mwj3);
+ product2.setProductName("玩具");
+ product2.setProductPrice(new BigDecimal("19.9"));
+ Product product3 = new Product();
+ product3.setImageUrlId(R.drawable.ml3);
+ product3.setProductName("美味猫粮");
+ product3.setProductPrice(new BigDecimal("19.9"));
+ Product product4 = new Product();
+ product4.setImageUrlId(R.drawable.ml2);
+ product4.setProductName("营养猫粮");
+ product4.setProductPrice(new BigDecimal("49.9"));
+ Product product5 = new Product();
+ product5.setImageUrlId(R.drawable.mwj);
+ product5.setProductName("玩具");
+ product5.setProductPrice(new BigDecimal("9.9"));
+ Product product6=new Product();
+ product6.setImageUrlId(R.drawable.mwj2);
+ product6.setProductName("玩具");
+ product6.setProductPrice(new BigDecimal("9.9"));
+ Product product7=new Product();
+ product7.setImageUrlId(R.drawable.xmw);
+ product7.setProductName("小型猫窝");
+ product7.setProductPrice(new BigDecimal("29.9"));
+ productList.add(product);
+ productList.add(product1);
+ productList.add(product2);
+ productList.add(product3);
+ productList.add(product4);
+ productList.add(product5);
+ productList.add(product6);
+ productList.add(product7);
+
+ }
+}
diff --git a/app/src/main/java/com/example/Cat/fragment/PearsonFragment.java b/app/src/main/java/com/example/Cat/fragment/PearsonFragment.java
new file mode 100644
index 0000000..0455e14
--- /dev/null
+++ b/app/src/main/java/com/example/Cat/fragment/PearsonFragment.java
@@ -0,0 +1,110 @@
+package com.example.Cat.fragment;
+
+import android.app.Fragment;
+import android.app.FragmentTransaction;
+import android.content.Intent;
+import android.os.Bundle;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+import android.widget.Button;
+import android.widget.ImageView;
+import android.widget.LinearLayout;
+import android.widget.TextView;
+
+import androidx.annotation.NonNull;
+import androidx.annotation.Nullable;
+
+import com.example.Cat.R;
+import com.example.Cat.activity.GoodsActivity;
+import com.example.Cat.activity.IndexActivity;
+import com.example.Cat.activity.MainActivity;
+import com.example.Cat.activity.UserMessageActivity;
+
+public class PearsonFragment extends Fragment implements View.OnClickListener {
+ private ImageView userIconImage;
+ public TextView usernameText, userSexText, userCityText;
+ public LinearLayout userProductLine,usernameLine, userSexline, userCityLine, userPayLine, userSettingLine, userGeneralLine;
+ public Button button;
+ public String username;
+ IndexActivity indexActivity;
+ @Nullable
+ @Override
+ public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
+ View view = LayoutInflater.from(getActivity()).inflate(R.layout.content_user, container, false);
+ init(view);
+ return view;
+ }
+
+ @Override
+ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
+ super.onActivityCreated(savedInstanceState);
+ button=(Button) getActivity().findViewById(R.id.exit);
+ userProductLine=(LinearLayout) getActivity().findViewById(R.id.user_product);
+ userSettingLine=(LinearLayout) getActivity().findViewById(R.id.user_setting);
+ button.setOnClickListener(this);
+ userSettingLine.setOnClickListener(this);
+ userProductLine.setOnClickListener(this);
+ }
+
+ /**
+ * 组件初始化
+ */
+ private void init(View view) {
+ userIconImage = view.findViewById(R.id.user_icon);
+ usernameText = view.findViewById(R.id.user_username);
+ //userSexText = view.findViewById(R.id.user_sex);
+// userCityText = view.findViewById(R.id.user_city);
+ usernameLine = view.findViewById(R.id.user_username_line);
+// userSexline = view.findViewById(R.id.user_sex_line);
+// userCityLine = view.findViewById(R.id.user_city_line);
+// userPayLine = view.findViewById(R.id.user_pay);
+ userSettingLine = view.findViewById(R.id.user_setting);
+// userGeneralLine = view.findViewById(R.id.user_general);
+ userProductLine = view.findViewById(R.id.user_product);
+// userProductLine.setOnClickListener(this);
+// userSettingLine.setOnClickListener(this);
+ button=view.findViewById(R.id.exit);
+// button.setOnClickListener(this);
+ setData();
+ }
+
+ /**
+ * 组件赋值
+ */
+ private void setData() {
+ Bundle bundle = getArguments();
+ usernameText.setText(String.format("用户名:%s", bundle.getString("username")));
+
+ }
+
+ @Override
+ public void onClick(View v) {
+ switch (v.getId()) {
+ case R.id.user_product:
+ Intent intent2 = new Intent(getActivity(), GoodsActivity.class);
+ startActivity(intent2);
+ break;
+// case R.id.user_setting:
+// Intent intent3 = new Intent(getActivity(), UserMessageActivity.class);
+// intent3.putExtra("username",username);
+// startActivity(intent3);
+// break;
+ case R.id.exit:
+ Intent intent4 = new Intent(getActivity(), MainActivity.class);
+ startActivity(intent4);
+
+ }
+ }
+// private void initInnerFragment() {
+// //开启事务,fragment的控制是由事务来实现的
+// FragmentTransaction transaction = getFragmentManager().beginTransaction();
+// if (innerFragment == null) {
+// innerFragment = new InnerFragment();
+// }
+// transaction.replace(R.id.main_content, innerFragment);
+// transaction.commit();
+// }
+
+
+}
diff --git a/app/src/main/java/com/example/Cat/fragment/ProductFragment.java b/app/src/main/java/com/example/Cat/fragment/ProductFragment.java
new file mode 100644
index 0000000..0f2d62a
--- /dev/null
+++ b/app/src/main/java/com/example/Cat/fragment/ProductFragment.java
@@ -0,0 +1,21 @@
+package com.example.Cat.fragment;
+
+import android.app.Fragment;
+import android.os.Bundle;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+
+import androidx.annotation.NonNull;
+import androidx.annotation.Nullable;
+
+import com.example.Cat.R;
+
+public class ProductFragment extends Fragment {
+ @Nullable
+ @Override
+ public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
+ View view = LayoutInflater.from(getActivity()).inflate(R.layout.content_product, container, false);
+ return view;
+ }
+}
diff --git a/app/src/main/java/com/example/Cat/fragment/ShoppingCartFragment.java b/app/src/main/java/com/example/Cat/fragment/ShoppingCartFragment.java
new file mode 100644
index 0000000..214f3f7
--- /dev/null
+++ b/app/src/main/java/com/example/Cat/fragment/ShoppingCartFragment.java
@@ -0,0 +1,21 @@
+package com.example.Cat.fragment;
+
+import android.app.Fragment;
+import android.os.Bundle;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+
+import androidx.annotation.NonNull;
+import androidx.annotation.Nullable;
+
+import com.example.Cat.R;
+
+public class ShoppingCartFragment extends Fragment {
+ @Nullable
+ @Override
+ public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
+ View view = LayoutInflater.from(getActivity()).inflate(R.layout.content_shopping, container, false);
+ return view;
+ }
+}
diff --git a/app/src/main/res/drawable/apple.png b/app/src/main/res/drawable/apple.png
new file mode 100644
index 0000000..0810381
Binary files /dev/null and b/app/src/main/res/drawable/apple.png differ
diff --git a/app/src/main/res/drawable/applep.png b/app/src/main/res/drawable/applep.png
new file mode 100644
index 0000000..e26da47
Binary files /dev/null and b/app/src/main/res/drawable/applep.png differ
diff --git a/app/src/main/res/drawable/arrow_left.png b/app/src/main/res/drawable/arrow_left.png
new file mode 100644
index 0000000..365afe0
Binary files /dev/null and b/app/src/main/res/drawable/arrow_left.png differ
diff --git a/app/src/main/res/drawable/chengzi.png b/app/src/main/res/drawable/chengzi.png
new file mode 100644
index 0000000..fff0306
Binary files /dev/null and b/app/src/main/res/drawable/chengzi.png differ
diff --git a/app/src/main/res/drawable/index.png b/app/src/main/res/drawable/index.png
new file mode 100644
index 0000000..cc1ec04
Binary files /dev/null and b/app/src/main/res/drawable/index.png differ
diff --git a/app/src/main/res/drawable/index_menu.xml b/app/src/main/res/drawable/index_menu.xml
new file mode 100644
index 0000000..14636dd
--- /dev/null
+++ b/app/src/main/res/drawable/index_menu.xml
@@ -0,0 +1,16 @@
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/juzi.png b/app/src/main/res/drawable/juzi.png
new file mode 100644
index 0000000..106df92
Binary files /dev/null and b/app/src/main/res/drawable/juzi.png differ
diff --git a/app/src/main/res/drawable/juzip.png b/app/src/main/res/drawable/juzip.png
new file mode 100644
index 0000000..4f10b72
Binary files /dev/null and b/app/src/main/res/drawable/juzip.png differ
diff --git a/app/src/main/res/drawable/lemon.png b/app/src/main/res/drawable/lemon.png
new file mode 100644
index 0000000..39f12cc
Binary files /dev/null and b/app/src/main/res/drawable/lemon.png differ
diff --git a/app/src/main/res/drawable/lemonp.png b/app/src/main/res/drawable/lemonp.png
new file mode 100644
index 0000000..ca5eca8
Binary files /dev/null and b/app/src/main/res/drawable/lemonp.png differ
diff --git a/app/src/main/res/drawable/li.png b/app/src/main/res/drawable/li.png
new file mode 100644
index 0000000..0834592
Binary files /dev/null and b/app/src/main/res/drawable/li.png differ
diff --git a/app/src/main/res/drawable/mangguo.png b/app/src/main/res/drawable/mangguo.png
new file mode 100644
index 0000000..2e9825c
Binary files /dev/null and b/app/src/main/res/drawable/mangguo.png differ
diff --git a/app/src/main/res/drawable/mhot.png b/app/src/main/res/drawable/mhot.png
new file mode 100644
index 0000000..ad24c89
Binary files /dev/null and b/app/src/main/res/drawable/mhot.png differ
diff --git a/app/src/main/res/drawable/ml.png b/app/src/main/res/drawable/ml.png
new file mode 100644
index 0000000..7a30e19
Binary files /dev/null and b/app/src/main/res/drawable/ml.png differ
diff --git a/app/src/main/res/drawable/ml1.png b/app/src/main/res/drawable/ml1.png
new file mode 100644
index 0000000..54dbb10
Binary files /dev/null and b/app/src/main/res/drawable/ml1.png differ
diff --git a/app/src/main/res/drawable/ml2.png b/app/src/main/res/drawable/ml2.png
new file mode 100644
index 0000000..57429db
Binary files /dev/null and b/app/src/main/res/drawable/ml2.png differ
diff --git a/app/src/main/res/drawable/ml3.png b/app/src/main/res/drawable/ml3.png
new file mode 100644
index 0000000..c0d3149
Binary files /dev/null and b/app/src/main/res/drawable/ml3.png differ
diff --git a/app/src/main/res/drawable/mlp.png b/app/src/main/res/drawable/mlp.png
new file mode 100644
index 0000000..d5461b4
Binary files /dev/null and b/app/src/main/res/drawable/mlp.png differ
diff --git a/app/src/main/res/drawable/mlp2.png b/app/src/main/res/drawable/mlp2.png
new file mode 100644
index 0000000..aabe170
Binary files /dev/null and b/app/src/main/res/drawable/mlp2.png differ
diff --git a/app/src/main/res/drawable/mls.png b/app/src/main/res/drawable/mls.png
new file mode 100644
index 0000000..6af5880
Binary files /dev/null and b/app/src/main/res/drawable/mls.png differ
diff --git a/app/src/main/res/drawable/mwj.png b/app/src/main/res/drawable/mwj.png
new file mode 100644
index 0000000..b5b578c
Binary files /dev/null and b/app/src/main/res/drawable/mwj.png differ
diff --git a/app/src/main/res/drawable/mwj2.png b/app/src/main/res/drawable/mwj2.png
new file mode 100644
index 0000000..db3a596
Binary files /dev/null and b/app/src/main/res/drawable/mwj2.png differ
diff --git a/app/src/main/res/drawable/mwj3.png b/app/src/main/res/drawable/mwj3.png
new file mode 100644
index 0000000..eb32a9e
Binary files /dev/null and b/app/src/main/res/drawable/mwj3.png differ
diff --git a/app/src/main/res/drawable/pearson.png b/app/src/main/res/drawable/pearson.png
new file mode 100644
index 0000000..90cf0eb
Binary files /dev/null and b/app/src/main/res/drawable/pearson.png differ
diff --git a/app/src/main/res/drawable/product.png b/app/src/main/res/drawable/product.png
new file mode 100644
index 0000000..8f5cb21
Binary files /dev/null and b/app/src/main/res/drawable/product.png differ
diff --git a/app/src/main/res/drawable/shoppingcart.png b/app/src/main/res/drawable/shoppingcart.png
new file mode 100644
index 0000000..76c06de
Binary files /dev/null and b/app/src/main/res/drawable/shoppingcart.png differ
diff --git a/app/src/main/res/drawable/shuiguo.png b/app/src/main/res/drawable/shuiguo.png
new file mode 100644
index 0000000..d316137
Binary files /dev/null and b/app/src/main/res/drawable/shuiguo.png differ
diff --git a/app/src/main/res/drawable/sure_apssword.png b/app/src/main/res/drawable/sure_apssword.png
new file mode 100644
index 0000000..0e7cee9
Binary files /dev/null and b/app/src/main/res/drawable/sure_apssword.png differ
diff --git a/app/src/main/res/drawable/tab_menu_text.xml b/app/src/main/res/drawable/tab_menu_text.xml
new file mode 100644
index 0000000..fb06945
--- /dev/null
+++ b/app/src/main/res/drawable/tab_menu_text.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/xigua.png b/app/src/main/res/drawable/xigua.png
new file mode 100644
index 0000000..20275c1
Binary files /dev/null and b/app/src/main/res/drawable/xigua.png differ
diff --git a/app/src/main/res/drawable/xiguap.png b/app/src/main/res/drawable/xiguap.png
new file mode 100644
index 0000000..b760712
Binary files /dev/null and b/app/src/main/res/drawable/xiguap.png differ
diff --git a/app/src/main/res/drawable/xmw.png b/app/src/main/res/drawable/xmw.png
new file mode 100644
index 0000000..f322496
Binary files /dev/null and b/app/src/main/res/drawable/xmw.png differ
diff --git a/app/src/main/res/drawable/youzi.png b/app/src/main/res/drawable/youzi.png
new file mode 100644
index 0000000..53df959
Binary files /dev/null and b/app/src/main/res/drawable/youzi.png differ
diff --git a/app/src/main/res/drawable/youzip.png b/app/src/main/res/drawable/youzip.png
new file mode 100644
index 0000000..5a7d966
Binary files /dev/null and b/app/src/main/res/drawable/youzip.png differ
diff --git a/app/src/main/res/layout/activity_index.xml b/app/src/main/res/layout/activity_index.xml
new file mode 100644
index 0000000..f7e0014
--- /dev/null
+++ b/app/src/main/res/layout/activity_index.xml
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/categoty_detail_content.xml b/app/src/main/res/layout/categoty_detail_content.xml
new file mode 100644
index 0000000..2b3a24f
--- /dev/null
+++ b/app/src/main/res/layout/categoty_detail_content.xml
@@ -0,0 +1,32 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/content_index.xml b/app/src/main/res/layout/content_index.xml
new file mode 100644
index 0000000..ed71695
--- /dev/null
+++ b/app/src/main/res/layout/content_index.xml
@@ -0,0 +1,221 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/content_nav.xml b/app/src/main/res/layout/content_nav.xml
new file mode 100644
index 0000000..8e83b7f
--- /dev/null
+++ b/app/src/main/res/layout/content_nav.xml
@@ -0,0 +1,119 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/content_product.xml b/app/src/main/res/layout/content_product.xml
new file mode 100644
index 0000000..d829e29
--- /dev/null
+++ b/app/src/main/res/layout/content_product.xml
@@ -0,0 +1,7 @@
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/content_shopping.xml b/app/src/main/res/layout/content_shopping.xml
new file mode 100644
index 0000000..d829e29
--- /dev/null
+++ b/app/src/main/res/layout/content_shopping.xml
@@ -0,0 +1,7 @@
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/content_user.xml b/app/src/main/res/layout/content_user.xml
index 6d2b1b6..e514ffe 100644
--- a/app/src/main/res/layout/content_user.xml
+++ b/app/src/main/res/layout/content_user.xml
@@ -3,7 +3,8 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#E8E8E8"
- android:orientation="vertical">
+ android:orientation="vertical"
+ android:id="@+id/user">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/shopping_cart.xml b/app/src/main/res/layout/shopping_cart.xml
new file mode 100644
index 0000000..d829e29
--- /dev/null
+++ b/app/src/main/res/layout/shopping_cart.xml
@@ -0,0 +1,7 @@
+
+
+
+
\ No newline at end of file