diff --git a/code/main/AndroidManifest.xml b/code/main/AndroidManifest.xml new file mode 100644 index 0000000..4a725f7 --- /dev/null +++ b/code/main/AndroidManifest.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/code/main/java/com/example/dxsdpdb/IndexFragment.java b/code/main/java/com/example/dxsdpdb/IndexFragment.java new file mode 100644 index 0000000..a09285d --- /dev/null +++ b/code/main/java/com/example/dxsdpdb/IndexFragment.java @@ -0,0 +1,63 @@ +package com.example.dxsdpdb; + +import android.os.Bundle; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; + +import androidx.fragment.app.Fragment; + +/** + * A simple {@link Fragment} subclass. + * Use the {@link IndexFragment#newInstance} factory method to + * create an instance of this fragment. + */ +public class IndexFragment extends Fragment { + + // TODO: Rename parameter arguments, choose names that match + // the fragment initialization parameters, e.g. ARG_ITEM_NUMBER + private static final String ARG_PARAM1 = "param1"; + private static final String ARG_PARAM2 = "param2"; + + // TODO: Rename and change types of parameters + private String mParam1; + private String mParam2; + + public IndexFragment() { + // Required empty public constructor + } + + /** + * Use this factory method to create a new instance of + * this fragment using the provided parameters. + * + * @param param1 Parameter 1. + * @param param2 Parameter 2. + * @return A new instance of fragment IndexFragment. + */ + // TODO: Rename and change types and number of parameters + public static IndexFragment newInstance(String param1, String param2) { + IndexFragment fragment = new IndexFragment(); + Bundle args = new Bundle(); + args.putString(ARG_PARAM1, param1); + args.putString(ARG_PARAM2, param2); + fragment.setArguments(args); + return fragment; + } + + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + if (getArguments() != null) { + mParam1 = getArguments().getString(ARG_PARAM1); + mParam2 = getArguments().getString(ARG_PARAM2); + } + } + + @Override + public View onCreateView(LayoutInflater inflater, ViewGroup container, + Bundle savedInstanceState) { + // Inflate the layout for this fragment + return inflater.inflate(R.layout.fragment_index, container, false); + } +} \ No newline at end of file diff --git a/code/main/java/com/example/dxsdpdb/MainActivity.java b/code/main/java/com/example/dxsdpdb/MainActivity.java new file mode 100644 index 0000000..474a1cd --- /dev/null +++ b/code/main/java/com/example/dxsdpdb/MainActivity.java @@ -0,0 +1,14 @@ +package com.example.dxsdpdb; + +import android.os.Bundle; + +import androidx.appcompat.app.AppCompatActivity; + +public class MainActivity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + } +} \ No newline at end of file diff --git a/code/main/java/com/example/dxsdpdb/MineFragment.java b/code/main/java/com/example/dxsdpdb/MineFragment.java new file mode 100644 index 0000000..e4622ed --- /dev/null +++ b/code/main/java/com/example/dxsdpdb/MineFragment.java @@ -0,0 +1,63 @@ +package com.example.dxsdpdb; + +import android.os.Bundle; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; + +import androidx.fragment.app.Fragment; + +/** + * A simple {@link Fragment} subclass. + * Use the {@link MineFragment#newInstance} factory method to + * create an instance of this fragment. + */ +public class MineFragment extends Fragment { + + // TODO: Rename parameter arguments, choose names that match + // the fragment initialization parameters, e.g. ARG_ITEM_NUMBER + private static final String ARG_PARAM1 = "param1"; + private static final String ARG_PARAM2 = "param2"; + + // TODO: Rename and change types of parameters + private String mParam1; + private String mParam2; + + public MineFragment() { + // Required empty public constructor + } + + /** + * Use this factory method to create a new instance of + * this fragment using the provided parameters. + * + * @param param1 Parameter 1. + * @param param2 Parameter 2. + * @return A new instance of fragment MineFragment. + */ + // TODO: Rename and change types and number of parameters + public static MineFragment newInstance(String param1, String param2) { + MineFragment fragment = new MineFragment(); + Bundle args = new Bundle(); + args.putString(ARG_PARAM1, param1); + args.putString(ARG_PARAM2, param2); + fragment.setArguments(args); + return fragment; + } + + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + if (getArguments() != null) { + mParam1 = getArguments().getString(ARG_PARAM1); + mParam2 = getArguments().getString(ARG_PARAM2); + } + } + + @Override + public View onCreateView(LayoutInflater inflater, ViewGroup container, + Bundle savedInstanceState) { + // Inflate the layout for this fragment + return inflater.inflate(R.layout.fragment_mine, container, false); + } +} \ No newline at end of file diff --git a/code/main/java/com/example/dxsdpdb/MissionFragment.java b/code/main/java/com/example/dxsdpdb/MissionFragment.java new file mode 100644 index 0000000..d0dddbc --- /dev/null +++ b/code/main/java/com/example/dxsdpdb/MissionFragment.java @@ -0,0 +1,63 @@ +package com.example.dxsdpdb; + +import android.os.Bundle; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; + +import androidx.fragment.app.Fragment; + +/** + * A simple {@link Fragment} subclass. + * Use the {@link MissionFragment#newInstance} factory method to + * create an instance of this fragment. + */ +public class MissionFragment extends Fragment { + + // TODO: Rename parameter arguments, choose names that match + // the fragment initialization parameters, e.g. ARG_ITEM_NUMBER + private static final String ARG_PARAM1 = "param1"; + private static final String ARG_PARAM2 = "param2"; + + // TODO: Rename and change types of parameters + private String mParam1; + private String mParam2; + + public MissionFragment() { + // Required empty public constructor + } + + /** + * Use this factory method to create a new instance of + * this fragment using the provided parameters. + * + * @param param1 Parameter 1. + * @param param2 Parameter 2. + * @return A new instance of fragment MissionFragment. + */ + // TODO: Rename and change types and number of parameters + public static MissionFragment newInstance(String param1, String param2) { + MissionFragment fragment = new MissionFragment(); + Bundle args = new Bundle(); + args.putString(ARG_PARAM1, param1); + args.putString(ARG_PARAM2, param2); + fragment.setArguments(args); + return fragment; + } + + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + if (getArguments() != null) { + mParam1 = getArguments().getString(ARG_PARAM1); + mParam2 = getArguments().getString(ARG_PARAM2); + } + } + + @Override + public View onCreateView(LayoutInflater inflater, ViewGroup container, + Bundle savedInstanceState) { + // Inflate the layout for this fragment + return inflater.inflate(R.layout.fragment_mission, container, false); + } +} \ No newline at end of file diff --git a/code/main/res/drawable-v24/ic_launcher_foreground.xml b/code/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 0000000..2b068d1 --- /dev/null +++ b/code/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/code/main/res/drawable/ic_launcher_background.xml b/code/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 0000000..07d5da9 --- /dev/null +++ b/code/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/code/main/res/drawable/index.png b/code/main/res/drawable/index.png new file mode 100644 index 0000000..18037ef Binary files /dev/null and b/code/main/res/drawable/index.png differ diff --git a/code/main/res/drawable/mine.png b/code/main/res/drawable/mine.png new file mode 100644 index 0000000..1213fcb Binary files /dev/null and b/code/main/res/drawable/mine.png differ diff --git a/code/main/res/drawable/mission.png b/code/main/res/drawable/mission.png new file mode 100644 index 0000000..db6882f Binary files /dev/null and b/code/main/res/drawable/mission.png differ diff --git a/code/main/res/layout/activity_main.xml b/code/main/res/layout/activity_main.xml new file mode 100644 index 0000000..23a043f --- /dev/null +++ b/code/main/res/layout/activity_main.xml @@ -0,0 +1,43 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/code/main/res/layout/bottom.xml b/code/main/res/layout/bottom.xml new file mode 100644 index 0000000..a3170b8 --- /dev/null +++ b/code/main/res/layout/bottom.xml @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/code/main/res/layout/fragment_index.xml b/code/main/res/layout/fragment_index.xml new file mode 100644 index 0000000..57a67a0 --- /dev/null +++ b/code/main/res/layout/fragment_index.xml @@ -0,0 +1,14 @@ + + + + + + + \ No newline at end of file diff --git a/code/main/res/layout/fragment_mine.xml b/code/main/res/layout/fragment_mine.xml new file mode 100644 index 0000000..7291d63 --- /dev/null +++ b/code/main/res/layout/fragment_mine.xml @@ -0,0 +1,14 @@ + + + + + + + \ No newline at end of file diff --git a/code/main/res/layout/fragment_mission.xml b/code/main/res/layout/fragment_mission.xml new file mode 100644 index 0000000..a87f2ca --- /dev/null +++ b/code/main/res/layout/fragment_mission.xml @@ -0,0 +1,14 @@ + + + + + + + \ No newline at end of file diff --git a/code/main/res/mipmap-anydpi-v26/ic_launcher.xml b/code/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 0000000..eca70cf --- /dev/null +++ b/code/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/code/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/code/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 0000000..eca70cf --- /dev/null +++ b/code/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/code/main/res/mipmap-hdpi/ic_launcher.png b/code/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000..a571e60 Binary files /dev/null and b/code/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/code/main/res/mipmap-hdpi/ic_launcher_round.png b/code/main/res/mipmap-hdpi/ic_launcher_round.png new file mode 100644 index 0000000..61da551 Binary files /dev/null and b/code/main/res/mipmap-hdpi/ic_launcher_round.png differ diff --git a/code/main/res/mipmap-mdpi/ic_launcher.png b/code/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 0000000..c41dd28 Binary files /dev/null and b/code/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/code/main/res/mipmap-mdpi/ic_launcher_round.png b/code/main/res/mipmap-mdpi/ic_launcher_round.png new file mode 100644 index 0000000..db5080a Binary files /dev/null and b/code/main/res/mipmap-mdpi/ic_launcher_round.png differ diff --git a/code/main/res/mipmap-xhdpi/ic_launcher.png b/code/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 0000000..6dba46d Binary files /dev/null and b/code/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/code/main/res/mipmap-xhdpi/ic_launcher_round.png b/code/main/res/mipmap-xhdpi/ic_launcher_round.png new file mode 100644 index 0000000..da31a87 Binary files /dev/null and b/code/main/res/mipmap-xhdpi/ic_launcher_round.png differ diff --git a/code/main/res/mipmap-xxhdpi/ic_launcher.png b/code/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000..15ac681 Binary files /dev/null and b/code/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/code/main/res/mipmap-xxhdpi/ic_launcher_round.png b/code/main/res/mipmap-xxhdpi/ic_launcher_round.png new file mode 100644 index 0000000..b216f2d Binary files /dev/null and b/code/main/res/mipmap-xxhdpi/ic_launcher_round.png differ diff --git a/code/main/res/mipmap-xxxhdpi/ic_launcher.png b/code/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 0000000..f25a419 Binary files /dev/null and b/code/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/code/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/code/main/res/mipmap-xxxhdpi/ic_launcher_round.png new file mode 100644 index 0000000..e96783c Binary files /dev/null and b/code/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ diff --git a/code/main/res/values-night/themes.xml b/code/main/res/values-night/themes.xml new file mode 100644 index 0000000..0f08eff --- /dev/null +++ b/code/main/res/values-night/themes.xml @@ -0,0 +1,16 @@ + + + + \ No newline at end of file diff --git a/code/main/res/values/array.xml b/code/main/res/values/array.xml new file mode 100644 index 0000000..d2422b4 --- /dev/null +++ b/code/main/res/values/array.xml @@ -0,0 +1,10 @@ + + + + 湖南师范大学 + 湖南大学 + 中南大学 + 湘潭大学 + 长沙理工大学 + + \ No newline at end of file diff --git a/code/main/res/values/colors.xml b/code/main/res/values/colors.xml new file mode 100644 index 0000000..133c3a1 --- /dev/null +++ b/code/main/res/values/colors.xml @@ -0,0 +1,11 @@ + + + #FFBB86FC + #FF6200EE + #FF3700B3 + #FF03DAC5 + #FF018786 + #FF000000 + #FFFFFFFF + #4169E1 + \ No newline at end of file diff --git a/code/main/res/values/strings.xml b/code/main/res/values/strings.xml new file mode 100644 index 0000000..92694f3 --- /dev/null +++ b/code/main/res/values/strings.xml @@ -0,0 +1,6 @@ + + dxsdpdb + 请选择学校 + + Hello blank fragment + \ No newline at end of file diff --git a/code/main/res/values/themes.xml b/code/main/res/values/themes.xml new file mode 100644 index 0000000..58fbeaf --- /dev/null +++ b/code/main/res/values/themes.xml @@ -0,0 +1,16 @@ + + + + \ No newline at end of file