diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index a507e9a..8dd057d 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -7,6 +7,11 @@ + + + + + + + diff --git a/app/src/main/java/com/example/myapplication/MineFragment.java b/app/src/main/java/com/example/myapplication/MineFragment.java index 6aa32af..e255e2d 100644 --- a/app/src/main/java/com/example/myapplication/MineFragment.java +++ b/app/src/main/java/com/example/myapplication/MineFragment.java @@ -51,6 +51,36 @@ public class MineFragment extends Fragment { } }); + //团长入驻 + ImageButton imageButton2 = view.findViewById(R.id.imageButton16); + imageButton2.setOnClickListener(new View.OnClickListener(){ + @Override + public void onClick(View v) { + Intent intent = new Intent(MineFragment.this.getActivity(), tuanzhangruzhuActivity.class); + startActivity(intent); + } + }); + + //消费积分 + ImageButton imageButton3 = view.findViewById(R.id.imageButton19); + imageButton3.setOnClickListener(new View.OnClickListener(){ + @Override + public void onClick(View v) { + Intent intent = new Intent(MineFragment.this.getActivity(), xiaofeijifenActivity.class); + startActivity(intent); + } + }); + + //我的关注 + ImageButton imageButton4 = view.findViewById(R.id.imageButton11); + imageButton4.setOnClickListener(new View.OnClickListener(){ + @Override + public void onClick(View v) { + Intent intent = new Intent(MineFragment.this.getActivity(), wodeguanzhuActivity.class); + startActivity(intent); + } + }); + return view; } } \ No newline at end of file diff --git a/app/src/main/java/com/example/myapplication/tuanzhangruzhuActivity.java b/app/src/main/java/com/example/myapplication/tuanzhangruzhuActivity.java index 80cba0a..61ff2fe 100644 --- a/app/src/main/java/com/example/myapplication/tuanzhangruzhuActivity.java +++ b/app/src/main/java/com/example/myapplication/tuanzhangruzhuActivity.java @@ -3,6 +3,10 @@ package com.example.myapplication; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; +import android.view.View; +import android.content.Intent; +import android.widget.Button; +import android.widget.ImageButton; public class tuanzhangruzhuActivity extends AppCompatActivity { @@ -10,5 +14,31 @@ public class tuanzhangruzhuActivity extends AppCompatActivity { protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_tuanzhangruzhu); + + // 返回 + ImageButton imageButton = findViewById(R.id.imageButton24); + imageButton.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + Intent intent = new Intent(tuanzhangruzhuActivity.this,yindaoActivity.class); + intent.putExtra("fragment","MineFragment"); + startActivity(intent); + } + }); + + //确认注册 + Button button = findViewById(R.id.button9); + button.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + Intent intent = new Intent(tuanzhangruzhuActivity.this,yindaoActivity.class); + intent.putExtra("fragment","MineFragment"); + startActivity(intent); + } + }); + + //上传照片 + ImageButton imageButton1 = findViewById(R.id.imageButton26); + } } \ No newline at end of file diff --git a/app/src/main/java/com/example/myapplication/wodeguanzhuActivity.java b/app/src/main/java/com/example/myapplication/wodeguanzhuActivity.java new file mode 100644 index 0000000..bcee51e --- /dev/null +++ b/app/src/main/java/com/example/myapplication/wodeguanzhuActivity.java @@ -0,0 +1,29 @@ +package com.example.myapplication; + +import androidx.appcompat.app.AppCompatActivity; + +import android.content.Intent; +import android.os.Bundle; +import android.view.View; +import android.widget.ImageButton; + +public class wodeguanzhuActivity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_wodeguanzhu); + + //返回 + ImageButton imageButton = findViewById(R.id.imageButton29); + imageButton.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + Intent intent = new Intent(wodeguanzhuActivity.this,yindaoActivity.class); + intent.putExtra("fragment","MineFragment"); + startActivity(intent); + } + }); + + } +} \ No newline at end of file diff --git a/app/src/main/java/com/example/myapplication/xiaofeijifenActivity.java b/app/src/main/java/com/example/myapplication/xiaofeijifenActivity.java new file mode 100644 index 0000000..4f7ada1 --- /dev/null +++ b/app/src/main/java/com/example/myapplication/xiaofeijifenActivity.java @@ -0,0 +1,29 @@ +package com.example.myapplication; + +import androidx.appcompat.app.AppCompatActivity; + +import android.content.Intent; +import android.os.Bundle; +import android.view.View; +import android.widget.ImageButton; + +public class xiaofeijifenActivity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_xiaofeijifen); + + //返回 + ImageButton imageButton = findViewById(R.id.imageButton25); + imageButton.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + Intent intent = new Intent(xiaofeijifenActivity.this,yindaoActivity.class); + intent.putExtra("fragment","MineFragment"); + startActivity(intent); + } + }); + + } +} \ No newline at end of file diff --git a/app/src/main/res/drawable/tianjiatupian.png b/app/src/main/res/drawable/tianjiatupian.png new file mode 100644 index 0000000..56a42ed Binary files /dev/null and b/app/src/main/res/drawable/tianjiatupian.png differ diff --git a/app/src/main/res/layout/activity_dengjixiangqing.xml b/app/src/main/res/layout/activity_dengjixiangqing.xml index 5daa8b9..d6c5b47 100644 --- a/app/src/main/res/layout/activity_dengjixiangqing.xml +++ b/app/src/main/res/layout/activity_dengjixiangqing.xml @@ -61,14 +61,15 @@ + app:layout_constraintTop_toTopOf="parent"> + android:textStyle="bold" /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +