diff --git a/.idea/compiler.xml b/.idea/compiler.xml index fb7f4a8..61a9130 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index 27e91da..ee22109 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,5 +1,6 @@ + - + diff --git a/app/build.gradle b/app/build.gradle index 3b8a747..c49aa7d 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -27,6 +27,7 @@ dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'androidx.appcompat:appcompat:1.0.2' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' + implementation 'com.google.android.material:material:1.4.+' testImplementation 'junit:junit:4.12' androidTestImplementation 'androidx.test.ext:junit:1.1.0' androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1' diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index e9dc395..23e6adc 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -9,13 +9,17 @@ android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/AppTheme"> + + - + diff --git a/app/src/main/java/com/orangesale/cn/activity/IndexActivity.java b/app/src/main/java/com/orangesale/cn/activity/IndexActivity.java new file mode 100644 index 0000000..7e81702 --- /dev/null +++ b/app/src/main/java/com/orangesale/cn/activity/IndexActivity.java @@ -0,0 +1,62 @@ +package com.orangesale.cn.activity; + +import androidx.annotation.Nullable; +import androidx.fragment.app.FragmentTransaction; + +import android.app.Activity; +import android.os.Bundle; +import android.view.View; +import android.widget.LinearLayout; + +import com.orangesale.cn.R; + +public class IndexActivity extends Activity implements View.OnClickListener { + private LinearLayout indexLine; + //private ProductFragment productFragment; + + @Override + protected void onCreate(@Nullable Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_index); + init(); + initIndexFragment(); + } + //组件初始化 + private void init(){ + + } + + @Override + public void onClick(View v){ + switch (v.getId()){ + + + } + } + + //初始化首页Fragment + private void initIndexFragment(){ + /* + FragmentTransaction transaction=getFragmentManager().beginTransaction(); + if(indexFragment==null){ + + } + + */ + } + + //初始化产品fragment + private void initproductFragment(){ + + } + + //初始化购物车fragment + private void initshoppingCarFragment(){ + + } + + //初始化个人fragment + private void initpersonFragment(){ + + } +} \ No newline at end of file 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/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/layout/activity_index.xml b/app/src/main/res/layout/activity_index.xml new file mode 100644 index 0000000..31dbee2 --- /dev/null +++ b/app/src/main/res/layout/activity_index.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + \ 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..3f06d5b --- /dev/null +++ b/app/src/main/res/layout/content_nav.xml @@ -0,0 +1,119 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file