From 3ce311888ac06fd7285747640f0e8c22fbf3b973 Mon Sep 17 00:00:00 2001 From: YGRXZYGR <1513065229@qq.com> Date: Thu, 30 May 2024 23:58:13 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E6=AC=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/AndroidManifest.xml | 9 +++++ .../hnucm/c202201020328/ChooseActivity.java | 37 ++++++++++++++++++ .../c202201020328/CommunityActivity.java | 18 +++++++++ .../com/hnucm/c202201020328/MainActivity.java | 11 ++++++ .../com/hnucm/c202201020328/ToolActivity.java | 18 +++++++++ src/main/res/drawable/img.png | Bin 0 -> 5551 bytes src/main/res/drawable/img_1.png | Bin 0 -> 2431 bytes src/main/res/drawable/text_shape.xml | 25 ++++++++++++ src/main/res/layout/activity_choose.xml | 34 ++++++++++++++++ src/main/res/layout/activity_community.xml | 10 +++++ src/main/res/layout/activity_main.xml | 36 +++++++++++++++++ src/main/res/layout/activity_tool.xml | 10 +++++ 12 files changed, 208 insertions(+) create mode 100644 src/main/java/com/hnucm/c202201020328/ChooseActivity.java create mode 100644 src/main/java/com/hnucm/c202201020328/CommunityActivity.java create mode 100644 src/main/java/com/hnucm/c202201020328/ToolActivity.java create mode 100644 src/main/res/drawable/img.png create mode 100644 src/main/res/drawable/img_1.png create mode 100644 src/main/res/drawable/text_shape.xml create mode 100644 src/main/res/layout/activity_choose.xml create mode 100644 src/main/res/layout/activity_community.xml create mode 100644 src/main/res/layout/activity_tool.xml diff --git a/src/main/AndroidManifest.xml b/src/main/AndroidManifest.xml index 0c35292..e041ad5 100644 --- a/src/main/AndroidManifest.xml +++ b/src/main/AndroidManifest.xml @@ -12,6 +12,15 @@ android:supportsRtl="true" android:theme="@style/Theme.MyProject" tools:targetApi="31"> + + + diff --git a/src/main/java/com/hnucm/c202201020328/ChooseActivity.java b/src/main/java/com/hnucm/c202201020328/ChooseActivity.java new file mode 100644 index 0000000..64f07b8 --- /dev/null +++ b/src/main/java/com/hnucm/c202201020328/ChooseActivity.java @@ -0,0 +1,37 @@ +package com.hnucm.c202201020328; + +import android.content.Intent; +import android.os.Bundle; +import android.view.View; +import android.widget.TextView; + +import androidx.activity.EdgeToEdge; +import androidx.appcompat.app.AppCompatActivity; +import androidx.core.graphics.Insets; +import androidx.core.view.ViewCompat; +import androidx.core.view.WindowInsetsCompat; + +public class ChooseActivity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_choose); + TextView textView3=findViewById(R.id.textView3); + TextView textView4=findViewById(R.id.textView4); + textView3.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + Intent intent=new Intent(ChooseActivity.this,CommunityActivity.class); + startActivity(intent); + } + }); + textView4.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + Intent intent=new Intent(ChooseActivity.this,ToolActivity.class); + startActivity(intent); + } + }); + } +} \ No newline at end of file diff --git a/src/main/java/com/hnucm/c202201020328/CommunityActivity.java b/src/main/java/com/hnucm/c202201020328/CommunityActivity.java new file mode 100644 index 0000000..38e3804 --- /dev/null +++ b/src/main/java/com/hnucm/c202201020328/CommunityActivity.java @@ -0,0 +1,18 @@ +package com.hnucm.c202201020328; + +import android.os.Bundle; + +import androidx.activity.EdgeToEdge; +import androidx.appcompat.app.AppCompatActivity; +import androidx.core.graphics.Insets; +import androidx.core.view.ViewCompat; +import androidx.core.view.WindowInsetsCompat; + +public class CommunityActivity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_community); + } +} \ No newline at end of file diff --git a/src/main/java/com/hnucm/c202201020328/MainActivity.java b/src/main/java/com/hnucm/c202201020328/MainActivity.java index ef7f1f4..c030aeb 100644 --- a/src/main/java/com/hnucm/c202201020328/MainActivity.java +++ b/src/main/java/com/hnucm/c202201020328/MainActivity.java @@ -1,6 +1,9 @@ package com.hnucm.c202201020328; +import android.content.Intent; import android.os.Bundle; +import android.view.View; +import android.widget.ImageView; import androidx.activity.EdgeToEdge; import androidx.appcompat.app.AppCompatActivity; @@ -17,5 +20,13 @@ public class MainActivity extends AppCompatActivity { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); ImmersionBar.with(this).init(); + ImageView imageView2=findViewById(R.id.imageView2); + imageView2.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + Intent intent=new Intent(MainActivity.this,ChooseActivity.class); + startActivity(intent); + } + }); } } \ No newline at end of file diff --git a/src/main/java/com/hnucm/c202201020328/ToolActivity.java b/src/main/java/com/hnucm/c202201020328/ToolActivity.java new file mode 100644 index 0000000..8700125 --- /dev/null +++ b/src/main/java/com/hnucm/c202201020328/ToolActivity.java @@ -0,0 +1,18 @@ +package com.hnucm.c202201020328; + +import android.os.Bundle; + +import androidx.activity.EdgeToEdge; +import androidx.appcompat.app.AppCompatActivity; +import androidx.core.graphics.Insets; +import androidx.core.view.ViewCompat; +import androidx.core.view.WindowInsetsCompat; + +public class ToolActivity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_tool); + } +} \ No newline at end of file diff --git a/src/main/res/drawable/img.png b/src/main/res/drawable/img.png new file mode 100644 index 0000000000000000000000000000000000000000..fe0b696014d14e83cb4d0a1fecde427d836ceb5c GIT binary patch literal 5551 zcmcIoXD}RI*IxudM53%9ED<3rk|0008$ja+n_ z@Mit-lsp6gpmS4rBc|WBW6HdI8Z}li`+I;&+`yQRPjga=EBSP@o zPHn!b5Jm3Ck9e$;oTPZUF(se5>B*qpf#4|Q-JcXw;h5TskJ!x&vj$JNjEwThV1*3g zu~Da6ZMOL9w6stCJNQh7xZ!UM;%p(^p&RV*+7+7NQ?%&tH)jj5pDqEQNXw7Y0T8f3 zT>}8z{tu#06CIT0clP^lWm{%?dg8)I6XKrUUg&!~C1C2cDhGv1CItVdw36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CjW;SKY6znrOIhkq-0Q)!$2gMWB93jjgcGPt0 z)G4ZorMtU3G&B_4QF`oHto0qfEevD!VQHs5^J= zq?$X?-rml>A+D{hr7{=d4Qg&~#;AaczkCt|d*8)qG*XQR;tc}w^YbybpP!$5Zj0Cn z1WYbLYcoTVK>!rrm;r3zUGQACZxf zfmx}ftpHLDvRMD-Mp#%FrV0p53ONlzjvP5MXwV=`)YsQn`XJ{7c4W4LHzp_-12BUQCz!r zZP~JAHqQL}Hq^_PFKIi;C}@zy`e%a@6BBJO1K7B6qv*fX0z(GI2zYJVpI|AW&y1GE{pJykUAOH=7*N2L>@uF^B_?K^%At;=p4N2Ofhs_#cp#44MX;5^Dee002ovPDHLkV1l%tiCF*u literal 0 HcmV?d00001 diff --git a/src/main/res/drawable/text_shape.xml b/src/main/res/drawable/text_shape.xml new file mode 100644 index 0000000..036703c --- /dev/null +++ b/src/main/res/drawable/text_shape.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + diff --git a/src/main/res/layout/activity_choose.xml b/src/main/res/layout/activity_choose.xml new file mode 100644 index 0000000..ecbdf80 --- /dev/null +++ b/src/main/res/layout/activity_choose.xml @@ -0,0 +1,34 @@ + + + + + + + \ No newline at end of file diff --git a/src/main/res/layout/activity_community.xml b/src/main/res/layout/activity_community.xml new file mode 100644 index 0000000..5c6d0ed --- /dev/null +++ b/src/main/res/layout/activity_community.xml @@ -0,0 +1,10 @@ + + + + \ No newline at end of file diff --git a/src/main/res/layout/activity_main.xml b/src/main/res/layout/activity_main.xml index 787303a..0f323e2 100644 --- a/src/main/res/layout/activity_main.xml +++ b/src/main/res/layout/activity_main.xml @@ -10,6 +10,7 @@ + + + + + + \ No newline at end of file diff --git a/src/main/res/layout/activity_tool.xml b/src/main/res/layout/activity_tool.xml new file mode 100644 index 0000000..62aa62c --- /dev/null +++ b/src/main/res/layout/activity_tool.xml @@ -0,0 +1,10 @@ + + + + \ No newline at end of file