diff --git a/src/main/AndroidManifest.xml b/src/main/AndroidManifest.xml index 9aa7a97..9fc7f19 100644 --- a/src/main/AndroidManifest.xml +++ b/src/main/AndroidManifest.xml @@ -44,9 +44,6 @@ - @@ -72,9 +69,7 @@ - + diff --git a/src/main/java/com/example/myapplication/LockerActivity.java b/src/main/java/com/example/myapplication/ApproveActivity.java similarity index 68% rename from src/main/java/com/example/myapplication/LockerActivity.java rename to src/main/java/com/example/myapplication/ApproveActivity.java index 0442a5d..34e11d7 100644 --- a/src/main/java/com/example/myapplication/LockerActivity.java +++ b/src/main/java/com/example/myapplication/ApproveActivity.java @@ -4,11 +4,11 @@ import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; -public class LockerActivity extends AppCompatActivity { +public class ApproveActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); - setContentView(R.layout.activity_locker); + setContentView(R.layout.activity_approve); } } \ No newline at end of file diff --git a/src/main/java/com/example/myapplication/Community1Fragment.java b/src/main/java/com/example/myapplication/Community1Fragment.java index c4af725..2f734d7 100644 --- a/src/main/java/com/example/myapplication/Community1Fragment.java +++ b/src/main/java/com/example/myapplication/Community1Fragment.java @@ -10,6 +10,10 @@ import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; +import com.bumptech.glide.Glide; +import com.bumptech.glide.load.resource.bitmap.CircleCrop; +import com.bumptech.glide.request.RequestOptions; + public class Community1Fragment extends Fragment { @@ -21,6 +25,42 @@ public class Community1Fragment extends Fragment { // Inflate the layout for this fragment View view=inflater.inflate(R.layout.fragment_community1, container, false); ImageView imageView25=view.findViewById(R.id.imageView25); + ImageView imageView26=view.findViewById(R.id.imageView26); + ImageView imageView27=view.findViewById(R.id.imageView27); + ImageView imageView28=view.findViewById(R.id.imageView28); + ImageView imageView29=view.findViewById(R.id.imageView29); + ImageView imageView31=view.findViewById(R.id.imageView31); + ImageView imageView32=view.findViewById(R.id.imageView32); + String imgUrl25="http://106.53.194.250:30089/i/2024/06/20/6673a095625ef.png"; + Glide.with(this) + .load(imgUrl25) + .into(imageView25); + String imgUrl26="http://106.53.194.250:30089/i/2024/06/20/6673a0946efd6.png"; + Glide.with(this) + .load(imgUrl26) + .into(imageView26); + String imgUrl27="http://106.53.194.250:30089/i/2024/06/20/6673a0948c940.png"; + Glide.with(this) + .load(imgUrl27) + .into(imageView27); + String imgUrl28="http://106.53.194.250:30089/i/2024/06/20/6673a094a9bbf.png"; + Glide.with(this) + .load(imgUrl28) + .into(imageView28); + String imgUrl29="http://106.53.194.250:30089/i/2024/06/20/6673a09682f40.png"; + Glide.with(this) + .load(imgUrl29) + .into(imageView29); + String imgUrl31="http://106.53.194.250:30089/i/2024/06/20/6673a09507c3a.png"; + Glide.with(this) + .load(imgUrl31) + .into(imageView31); + String imgUrl32="http://106.53.194.250:30089/i/2024/06/20/6673a095321ad.png"; + Glide.with(this) + .load(imgUrl32) + .into(imageView32); + + imageView25.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { diff --git a/src/main/java/com/example/myapplication/Community2Fragment.java b/src/main/java/com/example/myapplication/Community2Fragment.java index bcb4c84..935ab60 100644 --- a/src/main/java/com/example/myapplication/Community2Fragment.java +++ b/src/main/java/com/example/myapplication/Community2Fragment.java @@ -7,6 +7,9 @@ import androidx.fragment.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; +import android.widget.ImageView; + +import com.bumptech.glide.Glide; public class Community2Fragment extends Fragment { @@ -16,6 +19,41 @@ public class Community2Fragment extends Fragment { Bundle savedInstanceState) { // Inflate the layout for this fragment View view=inflater.inflate(R.layout.fragment_community2, container, false); + ImageView imageView25=view.findViewById(R.id.imageView25); + ImageView imageView26=view.findViewById(R.id.imageView26); + ImageView imageView27=view.findViewById(R.id.imageView27); + ImageView imageView28=view.findViewById(R.id.imageView28); + ImageView imageView29=view.findViewById(R.id.imageView29); + ImageView imageView31=view.findViewById(R.id.imageView31); + ImageView imageView32=view.findViewById(R.id.imageView32); + String imgUrl25="http://106.53.194.250:30089/i/2024/06/20/6673a88eb749a.png"; + Glide.with(this) + .load(imgUrl25) + .into(imageView25); + String imgUrl26="http://106.53.194.250:30089/i/2024/06/20/6673a88ece765.png"; + Glide.with(this) + .load(imgUrl26) + .into(imageView26); + String imgUrl27="http://106.53.194.250:30089/i/2024/06/20/6673a88ea5927.png"; + Glide.with(this) + .load(imgUrl27) + .into(imageView27); + String imgUrl28="http://106.53.194.250:30089/i/2024/06/20/6673abc42b374.png"; + Glide.with(this) + .load(imgUrl28) + .into(imageView28); + String imgUrl29="http://106.53.194.250:30089/i/2024/06/20/6673a88e8f060.png"; + Glide.with(this) + .load(imgUrl29) + .into(imageView29); + String imgUrl31="http://106.53.194.250:30089/i/2024/06/20/6673a88f11983.png"; + Glide.with(this) + .load(imgUrl31) + .into(imageView31); + String imgUrl32="http://106.53.194.250:30089/i/2024/06/20/6673a88f016bf.png"; + Glide.with(this) + .load(imgUrl32) + .into(imageView32); return view; } } \ No newline at end of file diff --git a/src/main/java/com/example/myapplication/Community3Fragment.java b/src/main/java/com/example/myapplication/Community3Fragment.java index 2721e1a..ec4f1b1 100644 --- a/src/main/java/com/example/myapplication/Community3Fragment.java +++ b/src/main/java/com/example/myapplication/Community3Fragment.java @@ -7,6 +7,9 @@ import androidx.fragment.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; +import android.widget.ImageView; + +import com.bumptech.glide.Glide; public class Community3Fragment extends Fragment { @@ -17,6 +20,41 @@ public class Community3Fragment extends Fragment { Bundle savedInstanceState) { // Inflate the layout for this fragment View view=inflater.inflate(R.layout.fragment_community3, container, false); + ImageView imageView25=view.findViewById(R.id.imageView25); + ImageView imageView26=view.findViewById(R.id.imageView26); + ImageView imageView27=view.findViewById(R.id.imageView27); + ImageView imageView28=view.findViewById(R.id.imageView28); + ImageView imageView29=view.findViewById(R.id.imageView29); + ImageView imageView31=view.findViewById(R.id.imageView31); + ImageView imageView32=view.findViewById(R.id.imageView32); + String imgUrl25="http://106.53.194.250:30089/i/2024/06/20/6673aa174fcde.png"; + Glide.with(this) + .load(imgUrl25) + .into(imageView25); + String imgUrl26="http://106.53.194.250:30089/i/2024/06/20/6673aa1679c60.png"; + Glide.with(this) + .load(imgUrl26) + .into(imageView26); + String imgUrl27="http://106.53.194.250:30089/i/2024/06/20/6673aa1672e4a.png"; + Glide.with(this) + .load(imgUrl27) + .into(imageView27); + String imgUrl28="http://106.53.194.250:30089/i/2024/06/20/6673aa1699710.png"; + Glide.with(this) + .load(imgUrl28) + .into(imageView28); + String imgUrl29="http://106.53.194.250:30089/i/2024/06/20/6673aa16a1dfc.png"; + Glide.with(this) + .load(imgUrl29) + .into(imageView29); + String imgUrl31="http://106.53.194.250:30089/i/2024/06/20/6673aa16a652a.png"; + Glide.with(this) + .load(imgUrl31) + .into(imageView31); + String imgUrl32="http://106.53.194.250:30089/i/2024/06/20/6673aa16ef135.png"; + Glide.with(this) + .load(imgUrl32) + .into(imageView32); return view; } } \ No newline at end of file diff --git a/src/main/java/com/example/myapplication/SecondActivity.java b/src/main/java/com/example/myapplication/SecondActivity.java deleted file mode 100644 index 8a241c5..0000000 --- a/src/main/java/com/example/myapplication/SecondActivity.java +++ /dev/null @@ -1,15 +0,0 @@ -package com.example.myapplication; - -import androidx.appcompat.app.AppCompatActivity; -import android.app.DownloadManager; -import android.os.Bundle; - -public class SecondActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_second); - - } -} \ No newline at end of file diff --git a/src/main/res/layout/activity_locker.xml b/src/main/res/layout/activity_approve.xml similarity index 51% rename from src/main/res/layout/activity_locker.xml rename to src/main/res/layout/activity_approve.xml index 00a0de4..9327dac 100644 --- a/src/main/res/layout/activity_locker.xml +++ b/src/main/res/layout/activity_approve.xml @@ -1,10 +1,9 @@ - + tools:context=".ApproveActivity"> - \ No newline at end of file + \ No newline at end of file diff --git a/src/main/res/layout/activity_second.xml b/src/main/res/layout/activity_second.xml deleted file mode 100644 index 5339601..0000000 --- a/src/main/res/layout/activity_second.xml +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/main/res/layout/fragment_community1.xml b/src/main/res/layout/fragment_community1.xml index 0386da4..d6c52e0 100644 --- a/src/main/res/layout/fragment_community1.xml +++ b/src/main/res/layout/fragment_community1.xml @@ -11,64 +11,65 @@ diff --git a/src/main/res/layout/fragment_community2.xml b/src/main/res/layout/fragment_community2.xml index d84c3a6..8ab146f 100644 --- a/src/main/res/layout/fragment_community2.xml +++ b/src/main/res/layout/fragment_community2.xml @@ -11,64 +11,62 @@ diff --git a/src/main/res/layout/fragment_community3.xml b/src/main/res/layout/fragment_community3.xml index 5619c2c..53f21bc 100644 --- a/src/main/res/layout/fragment_community3.xml +++ b/src/main/res/layout/fragment_community3.xml @@ -11,62 +11,63 @@