diff --git a/src/Logistics/.idea/deploymentTargetDropDown.xml b/src/Logistics/.idea/deploymentTargetDropDown.xml
new file mode 100644
index 0000000..ccd930c
--- /dev/null
+++ b/src/Logistics/.idea/deploymentTargetDropDown.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/Logistics/.idea/misc.xml b/src/Logistics/.idea/misc.xml
index 97947c4..52b23a3 100644
--- a/src/Logistics/.idea/misc.xml
+++ b/src/Logistics/.idea/misc.xml
@@ -9,6 +9,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Logistics/.idea/vcs.xml b/src/Logistics/.idea/vcs.xml
new file mode 100644
index 0000000..b2bdec2
--- /dev/null
+++ b/src/Logistics/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/Logistics/app/src/main/AndroidManifest.xml b/src/Logistics/app/src/main/AndroidManifest.xml
index 8d38361..414e4cc 100644
--- a/src/Logistics/app/src/main/AndroidManifest.xml
+++ b/src/Logistics/app/src/main/AndroidManifest.xml
@@ -1,17 +1,22 @@
+ package="com.example.logistics" >
+
+
+ android:theme="@style/Theme.Logistics" >
+
+ android:exported="true" >
diff --git a/src/Logistics/app/src/main/java/com/example/logistics/ui/Fragment3.java b/src/Logistics/app/src/main/java/com/example/logistics/ui/Fragment3.java
new file mode 100644
index 0000000..495b6f1
--- /dev/null
+++ b/src/Logistics/app/src/main/java/com/example/logistics/ui/Fragment3.java
@@ -0,0 +1,4 @@
+package com.example.logistics.ui;
+
+public class Fragment3 {
+}
diff --git a/src/Logistics/app/src/main/java/com/example/logistics/ui/MainActivity.java b/src/Logistics/app/src/main/java/com/example/logistics/ui/MainActivity.java
index 2427038..accf321 100644
--- a/src/Logistics/app/src/main/java/com/example/logistics/ui/MainActivity.java
+++ b/src/Logistics/app/src/main/java/com/example/logistics/ui/MainActivity.java
@@ -23,7 +23,8 @@ public class MainActivity extends Activity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
-
+ Intent intent = new Intent(MainActivity.this, MenuActivity.class);
+ startActivity(intent);
Button loginButton = (Button) this.findViewById(R.id.LoginButton);
Button signUpButton = (Button) this.findViewById(R.id.SignUpButton);
@@ -58,6 +59,10 @@ public class MainActivity extends Activity {
int msg = userDao.login(userName.getText().toString().trim(), passWord.getText().toString().trim());
Log.e("MAin", "msg");
hand1.sendEmptyMessage(msg);
+ if(msg == 1){
+ Intent intent = new Intent(MainActivity.this, MenuActivity.class);
+ startActivity(intent);
+ }
}
}.start();
}
diff --git a/src/Logistics/app/src/main/java/com/example/logistics/ui/MenuActivity.java b/src/Logistics/app/src/main/java/com/example/logistics/ui/MenuActivity.java
new file mode 100644
index 0000000..d8bcfba
--- /dev/null
+++ b/src/Logistics/app/src/main/java/com/example/logistics/ui/MenuActivity.java
@@ -0,0 +1,82 @@
+package com.example.logistics.ui;
+
+import android.app.FragmentTransaction;
+import android.os.Bundle;
+import android.view.View;
+import android.widget.ImageView;
+import android.widget.LinearLayout;
+import android.widget.TextView;
+
+import androidx.appcompat.app.AppCompatActivity;
+
+import com.example.logistics.R;
+
+public class MenuActivity extends AppCompatActivity implements View.OnClickListener{
+ private LinearLayout ly_one,ly_two,ly_three;
+ private TextView mTextView1,mTextView2,mTextView3;
+ private TextView mTextNum1,mTextNum2,mTextNum3;
+ private ImageView mImageView;
+
+
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_menu);
+
+ bindView();
+ ly_one.performClick();
+ FragmentTransaction transaction = getFragmentManager().beginTransaction();
+ MyFragment1 fg1 = new MyFragment1();
+ transaction.add(R.id.fragment_container,fg1);
+ transaction.commit();
+ }
+
+ private void bindView() {
+
+ ly_one = (LinearLayout)findViewById(R.id.ly_tab_menu_deal);
+ ly_two = (LinearLayout)findViewById(R.id.ly_tab_menu_poi);
+ ly_three = (LinearLayout)findViewById(R.id.ly_tab_menu_more);
+
+ mTextView1 = (TextView)findViewById(R.id.tab_menu_deal);
+ mTextView2 = (TextView)findViewById(R.id.tab_menu_poi);
+ mTextView3 = (TextView)findViewById(R.id.tab_menu_more);
+
+ mTextNum1 = (TextView)findViewById(R.id.tab_menu_deal_num);
+ mTextNum2 = (TextView)findViewById(R.id.tab_menu_poi_num);
+ mTextNum3 = (TextView)findViewById(R.id.tab_menu_more_num);
+
+
+ ly_one.setOnClickListener(this);
+ ly_two.setOnClickListener(this);
+ ly_three.setOnClickListener(this);
+ }
+
+ //重置所有文本的选中状态
+ private void setSelected() {
+ mTextView1.setSelected(false);
+ mTextView2.setSelected(false);
+ mTextView3.setSelected(false);
+ }
+ @Override
+ public void onClick(View v) {
+ switch (v.getId()) {
+ case R.id.ly_tab_menu_deal:
+ setSelected();
+ mTextView1.setSelected(true);
+ mTextNum1.setVisibility(View.INVISIBLE);
+ break;
+ case R.id.ly_tab_menu_poi:
+ setSelected();
+ mTextView2.setSelected(true);
+ mTextNum2.setVisibility(View.INVISIBLE);
+ break;
+ case R.id.ly_tab_menu_more:
+ setSelected();
+ mTextView3.setSelected(true);
+ mTextNum3.setVisibility(View.INVISIBLE);
+ break;
+ }
+ }
+
+}
diff --git a/src/Logistics/app/src/main/java/com/example/logistics/ui/MyFragment1.java b/src/Logistics/app/src/main/java/com/example/logistics/ui/MyFragment1.java
new file mode 100644
index 0000000..b9cb263
--- /dev/null
+++ b/src/Logistics/app/src/main/java/com/example/logistics/ui/MyFragment1.java
@@ -0,0 +1,62 @@
+package com.example.logistics.ui;
+
+
+import android.content.Context;
+import android.os.Bundle;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+import android.widget.Button;
+import android.widget.TextView;
+
+import androidx.annotation.Nullable;
+import android.app.Fragment;
+
+import com.example.logistics.R;
+
+public class MyFragment1 extends Fragment implements View.OnClickListener{
+ private Context mContext;
+ private Button btn_one;
+ private Button btn_two;
+ private Button btn_three;
+ private Button btn_four;
+
+ public MyFragment1(){
+
+ }
+ @Nullable
+
+ @Override
+ public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
+ View view = inflater.inflate(R.layout.my_fragment1,container,false);
+ btn_one = (Button)view.findViewById(R.id.btn_one);
+ btn_two = (Button)view.findViewById(R.id.btn_two);
+ btn_three = (Button)view.findViewById(R.id.btn_three);
+
+ btn_one.setOnClickListener(this);
+ btn_two.setOnClickListener(this);
+ btn_three.setOnClickListener(this);
+ return view;
+ }
+
+ @Override
+ public void onClick(View v) {
+ switch(v.getId()){
+ case R.id.btn_one:
+ TextView mTextViewDeal = (TextView)getActivity().findViewById(R.id.tab_menu_deal_num);
+ mTextViewDeal.setText("11");
+ mTextViewDeal.setVisibility(View.VISIBLE);
+ break;
+ case R.id.btn_two:
+ TextView mTextViewPoi = (TextView)getActivity().findViewById(R.id.tab_menu_poi_num);
+ mTextViewPoi.setText("99");
+ mTextViewPoi.setVisibility(View.VISIBLE);
+ break;
+ case R.id.btn_three:
+ TextView mTextViewMore = (TextView)getActivity().findViewById(R.id.tab_menu_more_num);
+ mTextViewMore.setText("999+");
+ mTextViewMore.setVisibility(View.VISIBLE);
+ break;
+ }
+ }
+}
diff --git a/src/Logistics/app/src/main/java/com/example/logistics/ui/MyFragment2.java b/src/Logistics/app/src/main/java/com/example/logistics/ui/MyFragment2.java
new file mode 100644
index 0000000..181b33f
--- /dev/null
+++ b/src/Logistics/app/src/main/java/com/example/logistics/ui/MyFragment2.java
@@ -0,0 +1,4 @@
+package com.example.logistics.ui;
+
+public class MyFragment2 {
+}
diff --git a/src/Logistics/app/src/main/res/drawable/me.png b/src/Logistics/app/src/main/res/drawable/me.png
index c767008..a44ece2 100644
Binary files a/src/Logistics/app/src/main/res/drawable/me.png and b/src/Logistics/app/src/main/res/drawable/me.png differ
diff --git a/src/Logistics/app/src/main/res/drawable/pickup.jpg b/src/Logistics/app/src/main/res/drawable/pickup.jpg
new file mode 100644
index 0000000..9a6ee63
Binary files /dev/null and b/src/Logistics/app/src/main/res/drawable/pickup.jpg differ
diff --git a/src/Logistics/app/src/main/res/drawable/search.png b/src/Logistics/app/src/main/res/drawable/search.png
new file mode 100644
index 0000000..593168e
Binary files /dev/null and b/src/Logistics/app/src/main/res/drawable/search.png differ
diff --git a/src/Logistics/app/src/main/res/drawable/tab_menu_better.xml b/src/Logistics/app/src/main/res/drawable/tab_menu_better.xml
new file mode 100644
index 0000000..4aeee76
--- /dev/null
+++ b/src/Logistics/app/src/main/res/drawable/tab_menu_better.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/Logistics/app/src/main/res/drawable/tab_menu_text.xml b/src/Logistics/app/src/main/res/drawable/tab_menu_text.xml
new file mode 100644
index 0000000..8705bd5
--- /dev/null
+++ b/src/Logistics/app/src/main/res/drawable/tab_menu_text.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/Logistics/app/src/main/res/layout/activity_main.xml b/src/Logistics/app/src/main/res/layout/activity_main.xml
index 14e9974..939e667 100644
--- a/src/Logistics/app/src/main/res/layout/activity_main.xml
+++ b/src/Logistics/app/src/main/res/layout/activity_main.xml
@@ -4,7 +4,6 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.logistics.ui.MainActivity">
-
-
-
-
diff --git a/src/Logistics/app/src/main/res/layout/activity_menu.xml b/src/Logistics/app/src/main/res/layout/activity_menu.xml
new file mode 100644
index 0000000..402d6ff
--- /dev/null
+++ b/src/Logistics/app/src/main/res/layout/activity_menu.xml
@@ -0,0 +1,137 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/Logistics/app/src/main/res/layout/buttom.xml b/src/Logistics/app/src/main/res/layout/buttom.xml
deleted file mode 100644
index c391404..0000000
--- a/src/Logistics/app/src/main/res/layout/buttom.xml
+++ /dev/null
@@ -1,63 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/Logistics/app/src/main/res/layout/my_fragment1.xml b/src/Logistics/app/src/main/res/layout/my_fragment1.xml
new file mode 100644
index 0000000..d92824a
--- /dev/null
+++ b/src/Logistics/app/src/main/res/layout/my_fragment1.xml
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/Logistics/app/src/main/res/layout/my_fragment2.xml b/src/Logistics/app/src/main/res/layout/my_fragment2.xml
new file mode 100644
index 0000000..e5eea0e
--- /dev/null
+++ b/src/Logistics/app/src/main/res/layout/my_fragment2.xml
@@ -0,0 +1,9 @@
+
+
+
+
\ No newline at end of file
diff --git a/src/Logistics/app/src/main/res/layout/my_fragment3.xml b/src/Logistics/app/src/main/res/layout/my_fragment3.xml
new file mode 100644
index 0000000..e5eea0e
--- /dev/null
+++ b/src/Logistics/app/src/main/res/layout/my_fragment3.xml
@@ -0,0 +1,9 @@
+
+
+
+
\ No newline at end of file
diff --git a/src/Logistics/app/src/main/res/values/colors.xml b/src/Logistics/app/src/main/res/values/colors.xml
index f8c6127..eaa3847 100644
--- a/src/Logistics/app/src/main/res/values/colors.xml
+++ b/src/Logistics/app/src/main/res/values/colors.xml
@@ -7,4 +7,6 @@
#FF018786
#FF000000
#FFFFFFFF
+ #FF0000FF
+ #FF999999
\ No newline at end of file
diff --git a/src/Logistics/app/src/main/res/values/style.xml b/src/Logistics/app/src/main/res/values/style.xml
new file mode 100644
index 0000000..90bd43d
--- /dev/null
+++ b/src/Logistics/app/src/main/res/values/style.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
\ No newline at end of file