This commit is contained in:
Lixin 2024-12-16 20:13:24 +08:00
parent ed20815e60
commit 66cffb04ff
23 changed files with 670 additions and 235 deletions

View File

@ -19,8 +19,15 @@
android:theme="@style/Theme.MyApplication"
android:usesCleartextTraffic="true"
tools:targetApi="31">
<activity
android:name=".tuanzhangruzhuActivity"
android:exported="false" />
<activity
android:name=".dengjixiangqingActivity"
android:exported="false" />
<activity
android:name=".zixunkefuActivity"
android:exported="false" />
<activity
android:name=".yindaoActivity"
android:exported="false" />
@ -33,7 +40,6 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
</manifest>

View File

@ -1,17 +1,56 @@
package com.example.myapplication;
import android.os.Bundle;
import android.content.Intent;
import androidx.fragment.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageButton;
import android.widget.Button;
public class MineFragment extends Fragment {
@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);
View view = inflater.inflate(R.layout.fragment_mine, container, false);
//咨询客服
ImageButton imageButton = view.findViewById(R.id.imageButton18);
imageButton.setOnClickListener(new View.OnClickListener(){
@Override
public void onClick(View v) {
Intent intent = new Intent(MineFragment.this.getActivity(), zixunkefuActivity.class);
startActivity(intent);
}
});
//等级详情
ImageButton imageButton1 = view.findViewById(R.id.imageButton17);
imageButton1.setOnClickListener(new View.OnClickListener(){
@Override
public void onClick(View v) {
Intent intent = new Intent(MineFragment.this.getActivity(), dengjixiangqingActivity.class);
startActivity(intent);
}
});
//去购物
Button button = view.findViewById(R.id.button7);
button.setOnClickListener(new View.OnClickListener(){
@Override
public void onClick(View v) {
Intent intent = new Intent(MineFragment.this.getActivity(), yindaoActivity.class);
intent.putExtra("homefragment","HomeFragment");
startActivity(intent);
}
});
return view;
}
}

View File

@ -0,0 +1,30 @@
package com.example.myapplication;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.content.Intent;
import android.widget.ImageButton;
public class dengjixiangqingActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_dengjixiangqing);
// 返回
ImageButton imageButton = findViewById(R.id.imageButton9);
imageButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(dengjixiangqingActivity.this,yindaoActivity.class);
intent.putExtra("fragment","MineFragment");
startActivity(intent);
}
});
}
}

View File

@ -0,0 +1,14 @@
package com.example.myapplication;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
public class tuanzhangruzhuActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_tuanzhangruzhu);
}
}

View File

@ -5,100 +5,93 @@ import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentTransaction;
public class yindaoActivity extends AppCompatActivity {
private HomeFragment homeFragment;
private FindFragment findFragment;
private VipFragment vipFragment;
private ShoppingTrolleyFragment shoppingTrolleyFragment;
private MineFragment mineFragment;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_yindao);
HomeFragment homeFragment = new HomeFragment();
FindFragment findFragment = new FindFragment();
VipFragment vipFragment = new VipFragment();
ShoppingTrolleyFragment shoppingTrolleyFragment = new ShoppingTrolleyFragment();
MineFragment mineFragment = new MineFragment();
homeFragment = new HomeFragment();
findFragment = new FindFragment();
vipFragment = new VipFragment();
shoppingTrolleyFragment = new ShoppingTrolleyFragment();
mineFragment = new MineFragment();
getSupportFragmentManager().beginTransaction().add(R.id.constraintLayout100,homeFragment).commit();
getSupportFragmentManager().beginTransaction().add(R.id.constraintLayout100,findFragment).commit();
getSupportFragmentManager().beginTransaction().add(R.id.constraintLayout100,vipFragment).commit();
getSupportFragmentManager().beginTransaction().add(R.id.constraintLayout100,shoppingTrolleyFragment).commit();
getSupportFragmentManager().beginTransaction().add(R.id.constraintLayout100,mineFragment).commit();
FragmentManager fragmentManager = getSupportFragmentManager();
FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
fragmentTransaction.add(R.id.constraintLayout100, homeFragment);
fragmentTransaction.add(R.id.constraintLayout100, findFragment);
fragmentTransaction.add(R.id.constraintLayout100, vipFragment);
fragmentTransaction.add(R.id.constraintLayout100, shoppingTrolleyFragment);
fragmentTransaction.add(R.id.constraintLayout100, mineFragment);
fragmentTransaction.commit();
//默认第一个显示第一个
// 默认隐藏所有 Fragment
hideAllFragments();
// 根据传递的参数显示相应的 Fragment
String fragmentName = getIntent().getStringExtra("fragment");
if ("MineFragment".equals(fragmentName)) {
showFragment(mineFragment);
} else {
showFragment(homeFragment);
}
setupImageButtons();
}
private void hideAllFragments() {
getSupportFragmentManager().beginTransaction()
.hide(findFragment).hide(vipFragment).hide(shoppingTrolleyFragment).hide(mineFragment).show(homeFragment).commit();
.hide(homeFragment)
.hide(findFragment)
.hide(vipFragment)
.hide(shoppingTrolleyFragment)
.hide(mineFragment)
.commit();
}
private void showFragment(Fragment fragment) {
getSupportFragmentManager().beginTransaction()
.show(fragment)
.commit();
}
private void setupImageButtons() {
ImageButton imageButton1 = findViewById(R.id.imageButton4);
ImageButton imageButton2 = findViewById(R.id.imageButton5);
ImageButton imageButton3 = findViewById(R.id.imageButton6);
ImageButton imageButton4 = findViewById(R.id.imageButton7);
ImageButton imageButton5 = findViewById(R.id.imageButton8);
imageButton1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
getSupportFragmentManager().beginTransaction()
.hide(findFragment).hide(vipFragment).hide(shoppingTrolleyFragment).hide(mineFragment).show(homeFragment).commit();
imageButton1.setSelected(true);
imageButton2.setSelected(false);
imageButton3.setSelected(false);
imageButton4.setSelected(false);
imageButton5.setSelected(false);
}
});
imageButton2.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
getSupportFragmentManager().beginTransaction()
.hide(homeFragment).hide(vipFragment).hide(shoppingTrolleyFragment).hide(mineFragment).show(findFragment).commit();
imageButton1.setSelected(false);
imageButton2.setSelected(true);
imageButton3.setSelected(false);
imageButton4.setSelected(false);
imageButton5.setSelected(false);
}
});
imageButton3.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
getSupportFragmentManager().beginTransaction()
.hide(homeFragment).hide(findFragment).hide(shoppingTrolleyFragment).hide(mineFragment).show(vipFragment).commit();
imageButton1.setSelected(false);
imageButton2.setSelected(false);
imageButton3.setSelected(true);
imageButton4.setSelected(false);
imageButton5.setSelected(false);
}
});
imageButton4.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
getSupportFragmentManager().beginTransaction()
.hide(homeFragment).hide(findFragment).hide(vipFragment).hide(mineFragment).show(shoppingTrolleyFragment).commit();
imageButton1.setSelected(false);
imageButton2.setSelected(false);
imageButton3.setSelected(false);
imageButton4.setSelected(true);
imageButton5.setSelected(false);
}
});
imageButton5.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
getSupportFragmentManager().beginTransaction()
.hide(homeFragment).hide(findFragment).hide(vipFragment).hide(shoppingTrolleyFragment).show(mineFragment).commit();
imageButton1.setSelected(false);
imageButton2.setSelected(false);
imageButton3.setSelected(false);
imageButton4.setSelected(false);
imageButton5.setSelected(true);
}
});
imageButton1.setOnClickListener(v -> selectFragment(imageButton1, homeFragment));
imageButton2.setOnClickListener(v -> selectFragment(imageButton2, findFragment));
imageButton3.setOnClickListener(v -> selectFragment(imageButton3, vipFragment));
imageButton4.setOnClickListener(v -> selectFragment(imageButton4, shoppingTrolleyFragment));
imageButton5.setOnClickListener(v -> selectFragment(imageButton5, mineFragment));
}
}
private void selectFragment(ImageButton selectedButton, Fragment fragment) {
hideAllFragments();
showFragment(fragment);
updateButtonSelection(selectedButton);
}
private void updateButtonSelection(ImageButton selectedButton) {
ImageButton[] buttons = {findViewById(R.id.imageButton4), findViewById(R.id.imageButton5),
findViewById(R.id.imageButton6), findViewById(R.id.imageButton7), findViewById(R.id.imageButton8)};
for (ImageButton button : buttons) {
button.setSelected(button == selectedButton);
}
}
}

View File

@ -0,0 +1,29 @@
package com.example.myapplication;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.content.Intent;
import android.widget.ImageButton;
public class zixunkefuActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_zixunkefu);
//返回
ImageButton imageButton = findViewById(R.id.imageButton20);
imageButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(zixunkefuActivity.this,yindaoActivity.class);
intent.putExtra("fragment","MineFragment");
startActivity(intent);
}
});
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 626 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

@ -0,0 +1,117 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".dengjixiangqingActivity">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="409dp"
android:layout_height="729dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="1.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/constraintLayout16"
android:layout_width="407dp"
android:layout_height="60dp"
android:background="#FFFFFF"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<TextView
android:id="@+id/textView47"
android:layout_width="110dp"
android:layout_height="37dp"
android:layout_marginTop="8dp"
android:gravity="center"
android:text="等级详情"
android:textSize="24sp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<ImageButton
android:id="@+id/imageButton9"
android:layout_width="44dp"
android:layout_height="30dp"
android:layout_marginStart="16dp"
android:layout_marginTop="8dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/fanhui" />
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="407dp"
android:layout_height="667dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/constraintLayout16">
<androidx.cardview.widget.CardView
android:layout_width="360dp"
android:layout_height="290dp"
android:layout_marginStart="1dp"
android:layout_marginTop="40dp"
android:background="#FFFFFF"
app:cardCornerRadius="16dp"
app:cardElevation="10dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" >
<TextView
android:id="@+id/textView48"
android:layout_width="110dp"
android:layout_height="39dp"
android:layout_marginLeft="10dp"
android:layout_marginTop="8dp"
android:gravity="center"
android:text="等级简介:"
android:textSize="17dp"
android:textStyle="bold" />
<TextView
android:id="@+id/textView49"
android:layout_width="210dp"
android:layout_height="39dp"
android:layout_marginLeft="70dp"
android:layout_marginTop="56dp"
android:gravity=""
android:text="普通团员:实名认证用户"
android:textSize="17dp"
android:textStyle="bold" />
<TextView
android:id="@+id/textView50"
android:layout_width="270dp"
android:layout_height="wrap_content"
android:layout_marginLeft="70dp"
android:layout_marginTop="110dp"
android:text="团长推广100名普通团员为团长直系邀请和非直系邀请"
android:textSize="17dp"
android:textStyle="bold"/>
<TextView
android:id="@+id/textView51"
android:layout_width="270dp"
android:layout_height="wrap_content"
android:layout_marginLeft="70dp"
android:layout_marginTop="175dp"
android:text="外-指导员名下有10名团长为外-指导员(直系邀请和非直系邀请)"
android:textSize="17dp"
android:textStyle="bold" />
</androidx.cardview.widget.CardView>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -0,0 +1,38 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".tuanzhangruzhuActivity">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="409dp"
android:layout_height="729dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="1.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/constraintLayout17"
android:layout_width="407dp"
android:layout_height="60dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="407dp"
android:layout_height="667dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/constraintLayout17">
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -7,6 +7,11 @@
tools:context=".yindaoActivity">
<FrameLayout
android:id="@+id/fragment_container"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="409dp"
android:layout_height="729dp"

View File

@ -0,0 +1,112 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".zixunkefuActivity">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="409dp"
android:layout_height="729dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="1.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/constraintLayout15"
android:layout_width="407dp"
android:layout_height="60dp"
android:background="#FFFFFF"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<TextView
android:id="@+id/textView43"
android:layout_width="93dp"
android:layout_height="37dp"
android:layout_marginTop="8dp"
android:gravity="center"
android:text="我的"
android:textSize="24sp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<ImageButton
android:id="@+id/imageButton20"
android:layout_width="44dp"
android:layout_height="30dp"
android:layout_marginStart="16dp"
android:layout_marginTop="8dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/fanhui" />
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="407dp"
android:layout_height="667dp"
android:background="#F5F5F5"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="1.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/constraintLayout15">
<TextView
android:id="@+id/textView44"
android:layout_width="211dp"
android:layout_height="36dp"
android:layout_marginStart="24dp"
android:layout_marginTop="19dp"
android:text="点击按钮开始咨询"
android:textStyle="bold"
android:textSize="24dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/textView45"
android:layout_width="375dp"
android:layout_height="36dp"
android:layout_marginTop="19dp"
android:text="客服工作时间: 早0800-晚2300"
android:textSize="20dp"
android:textStyle=""
app:layout_constraintStart_toStartOf="@+id/textView44"
app:layout_constraintTop_toBottomOf="@+id/textView44" />
<TextView
android:id="@+id/textView46"
android:layout_width="375dp"
android:layout_height="65dp"
android:layout_marginTop="19dp"
android:text="如果有客服回复不及时情况,留言即可,客户人员看到后会及时回复您"
android:textSize="20dp"
android:textStyle=""
app:layout_constraintStart_toStartOf="@+id/textView45"
app:layout_constraintTop_toBottomOf="@+id/textView45" />
<Button
android:id="@+id/button8"
android:layout_width="160dp"
android:layout_height="51dp"
android:layout_marginTop="19dp"
android:text="客服咨询"
android:textStyle=""
android:textSize="20dp"
android:textColor="#FF0000"
android:backgroundTint="@color/white"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView46" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -13,7 +13,8 @@
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/constraintLayout12"
android:layout_width="0dp"
android:layout_height="70dp"
android:layout_height="60dp"
android:background="#FFFFFF"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
@ -22,7 +23,7 @@
android:id="@+id/textView40"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginBottom="13dp"
android:layout_marginTop="8dp"
android:gravity="center"
android:text="我的"
android:textSize="24sp"
@ -47,156 +48,8 @@
android:layout_height="wrap_content">
<!-- 添加更多内容以确保高度超过 NestedScrollView 的高度 -->
<Button
android:id="@+id/button8"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Button"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.05"
app:layout_constraintStart_toStartOf="parent"
tools:layout_editor_absoluteY="337dp" />
<TextView
android:id="@+id/textView43"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="More Content"
app:layout_constraintTop_toBottomOf="@+id/button8"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:layout_marginTop="20dp" />
<TextView
android:id="@+id/textView44"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Even More Content"
app:layout_constraintTop_toBottomOf="@+id/textView43"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:layout_marginTop="20dp" />
<TextView
android:id="@+id/textView45"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Additional Content"
app:layout_constraintTop_toBottomOf="@+id/textView44"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:layout_marginTop="20dp" />
<TextView
android:id="@+id/textView46"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Final Content"
app:layout_constraintTop_toBottomOf="@+id/textView45"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:layout_marginTop="20dp" />
<!-- 添加更多内容 -->
<TextView
android:id="@+id/textView47"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Content 1"
app:layout_constraintTop_toBottomOf="@+id/textView46"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:layout_marginTop="20dp" />
<TextView
android:id="@+id/textView48"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Content 2"
app:layout_constraintTop_toBottomOf="@+id/textView47"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:layout_marginTop="20dp" />
<TextView
android:id="@+id/textView49"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Content 3"
app:layout_constraintTop_toBottomOf="@+id/textView48"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:layout_marginTop="20dp" />
<TextView
android:id="@+id/textView50"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Content 4"
app:layout_constraintTop_toBottomOf="@+id/textView49"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:layout_marginTop="20dp" />
<TextView
android:id="@+id/textView51"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Content 5"
app:layout_constraintTop_toBottomOf="@+id/textView50"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:layout_marginTop="20dp" />
<TextView
android:id="@+id/textView52"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Content 6"
app:layout_constraintTop_toBottomOf="@+id/textView51"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:layout_marginTop="20dp" />
<TextView
android:id="@+id/textView53"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Content 7"
app:layout_constraintTop_toBottomOf="@+id/textView52"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:layout_marginTop="20dp" />
<TextView
android:id="@+id/textView54"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Content 8"
app:layout_constraintTop_toBottomOf="@+id/textView53"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:layout_marginTop="20dp" />
<TextView
android:id="@+id/textView55"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Content 9"
app:layout_constraintTop_toBottomOf="@+id/textView54"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:layout_marginTop="20dp" />
<TextView
android:id="@+id/textView56"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Content 10"
app:layout_constraintTop_toBottomOf="@+id/textView55"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:layout_marginTop="20dp" />
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/constraintLayout14"
@ -266,6 +119,7 @@
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.cardview.widget.CardView
android:id="@+id/cardView3"
android:layout_width="380dp"
android:layout_height="150dp"
android:layout_marginStart="1dp"
@ -277,7 +131,7 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.487"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@+id/constraintLayout14" >
app:layout_constraintTop_toTopOf="@+id/constraintLayout14">
<ImageButton
android:id="@+id/imageButton3"
@ -305,7 +159,7 @@
android:layout_height="91dp"
android:layout_marginLeft="10dp"
android:layout_marginTop="50dp"
app:cardElevation="10dp" >
app:cardElevation="10dp">
<ImageButton
android:id="@+id/imageButton13"
@ -330,9 +184,207 @@
android:layout_marginLeft="140dp"
android:layout_marginTop="5dp"
android:src="@drawable/daitihuo" />
<ImageButton
android:id="@+id/imageButton"
android:layout_width="67dp"
android:layout_height="80dp"
android:layout_marginLeft="210dp"
android:layout_marginTop="5dp"
android:src="@drawable/yitihuo" />
<ImageButton
android:id="@+id/imageButton10"
android:layout_width="83dp"
android:layout_height="83dp"
android:layout_marginLeft="277dp"
android:layout_marginTop="5dp"
android:src="@drawable/tuihuoshouhou" />
</androidx.cardview.widget.CardView>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:id="@+id/cardView4"
android:layout_width="380dp"
android:layout_height="120dp"
android:layout_marginStart="1dp"
android:layout_marginTop="30dp"
android:layout_marginEnd="1dp"
android:background="#FFFFFF"
app:cardCornerRadius="16dp"
app:cardElevation="10dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/cardView3">
<ImageButton
android:id="@+id/imageButton11"
android:layout_width="80dp"
android:layout_height="80dp"
android:layout_marginLeft="15dp"
android:layout_marginTop="21dp"
android:src="@drawable/wodeguanzhu" />
<ImageButton
android:id="@+id/imageButton12"
android:layout_width="86dp"
android:layout_height="80dp"
android:layout_marginLeft="100dp"
android:layout_marginTop="21dp"
android:src="@drawable/yaoqinglaxin" />
<ImageButton
android:id="@+id/imageButton16"
android:layout_width="80dp"
android:layout_height="80dp"
android:layout_marginLeft="195dp"
android:layout_marginTop="22dp"
android:src="@drawable/tuanzhangruzhu" />
<ImageButton
android:id="@+id/imageButton17"
android:layout_width="80dp"
android:layout_height="80dp"
android:layout_marginLeft="288dp"
android:layout_marginTop="18dp"
android:src="@drawable/dengjixiangqing" />
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:id="@+id/cardView5"
android:layout_width="380dp"
android:layout_height="120dp"
android:layout_marginStart="1dp"
android:layout_marginTop="30dp"
android:layout_marginEnd="1dp"
android:background="#FFFFFF"
app:cardCornerRadius="16dp"
app:cardElevation="10dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/cardView4">
<ImageButton
android:id="@+id/imageButton18"
android:layout_width="80dp"
android:layout_height="80dp"
android:layout_marginLeft="15dp"
android:layout_marginTop="18dp"
android:src="@drawable/zixunkefu" />
<ImageButton
android:id="@+id/imageButton19"
android:layout_width="80dp"
android:layout_height="80dp"
android:layout_marginLeft="105dp"
android:layout_marginTop="17dp"
android:src="@drawable/xiaofeijifen" />
<ImageButton
android:id="@+id/imageButton21"
android:layout_width="80dp"
android:layout_height="79dp"
android:layout_marginLeft="195dp"
android:layout_marginTop="16dp"
android:src="@drawable/tuanzhangzhongxin" />
<ImageButton
android:id="@+id/imageButton22"
android:layout_width="80dp"
android:layout_height="80dp"
android:layout_marginLeft="283dp"
android:layout_marginTop="16dp"
android:src="@drawable/shangjiashangpin" />
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:id="@+id/cardView6"
android:layout_width="380dp"
android:layout_height="260dp"
android:layout_marginStart="1dp"
android:layout_marginTop="30dp"
android:layout_marginEnd="1dp"
android:background="#FFFFFF"
app:cardCornerRadius="16dp"
app:cardElevation="10dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/cardView5">
<TextView
android:id="@+id/textView41"
android:layout_width="150dp"
android:layout_height="39dp"
android:layout_marginLeft="10dp"
android:layout_marginTop="11dp"
android:gravity="center"
android:text="我的当前自提点"
android:textSize="20dp"
android:textStyle="bold" />
<androidx.cardview.widget.CardView
android:layout_width="360dp"
android:layout_height="185dp"
android:layout_marginLeft="10dp"
android:layout_marginTop="60dp"
app:cardElevation="10dp">
<TextView
android:id="@+id/textView42"
android:layout_width="208dp"
android:layout_height="39dp"
android:layout_marginLeft="10dp"
android:layout_marginTop="4dp"
android:gravity="center"
android:text="岳麓区绿城社区团购点"
android:textColor="#FF0000"
android:textSize="20dp"
android:textStyle="bold" />
<TextView
android:layout_width="330dp"
android:layout_height="66dp"
android:layout_marginLeft="10dp"
android:layout_marginTop="58dp"
android:text="门店地址湖南省长沙市岳麓区望城坡绿城社区一点点24小时便利店"
android:textSize="20dp"
android:textStyle="bold" />
<TextView
android:id="@+id/textView61"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginTop="130dp"
android:text="门店电话12345678910"
android:textSize="20dp"
android:textStyle="bold" />
</androidx.cardview.widget.CardView>
<ImageButton
android:id="@+id/imageButton23"
android:layout_width="124dp"
android:layout_height="25dp"
android:layout_marginLeft="246dp"
android:layout_marginTop="17dp"
android:src="@drawable/qiehuanzitidian" />
</androidx.cardview.widget.CardView>
<Button
android:id="@+id/button7"
android:layout_width="183dp"
android:layout_height="54dp"
android:layout_marginTop="16dp"
android:text="去购物"
android:textStyle="bold"
android:textSize="20dp"
android:backgroundTint="#FF0000"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/cardView6" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.core.widget.NestedScrollView>