This commit is contained in:
Lixin 2024-12-15 15:16:55 +08:00
parent 78f39cd22e
commit ed20815e60
22 changed files with 513 additions and 298 deletions

View File

@ -33,6 +33,7 @@ dependencies {
implementation("androidx.appcompat:appcompat:1.6.1")
implementation("com.google.android.material:material:1.9.0")
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
implementation("androidx.legacy:legacy-support-v4:1.0.0")
testImplementation("junit:junit:4.13.2")
androidTestImplementation("androidx.test.ext:junit:1.1.5")
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")

View File

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

View File

@ -8,53 +8,8 @@ import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
/**
* A simple {@link Fragment} subclass.
* Use the {@link FindFragment#newInstance} factory method to
* create an instance of this fragment.
*/
public class FindFragment 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 FindFragment() {
// 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 FindFragment.
*/
// TODO: Rename and change types and number of parameters
public static FindFragment newInstance(String param1, String param2) {
FindFragment fragment = new FindFragment();
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) {

View File

@ -56,7 +56,7 @@ public class MainActivity extends AppCompatActivity {
SharedPreferences.Editor editor = getSharedPreferences("data", MODE_PRIVATE).edit();
editor.putString("token", loginResult.token);
editor.apply();
Intent intent = new Intent(MainActivity.this, MineFragment.class);
Intent intent = new Intent(MainActivity.this, yindaoActivity.class);
startActivity(intent);
}else {
Toast.makeText(MainActivity.this,loginResult.msg, Toast.LENGTH_SHORT).show();

View File

@ -7,54 +7,7 @@ import androidx.fragment.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
/**
* 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) {

View File

@ -8,53 +8,8 @@ import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
/**
* A simple {@link Fragment} subclass.
* Use the {@link ShoppingTrolleyFragment#newInstance} factory method to
* create an instance of this fragment.
*/
public class ShoppingTrolleyFragment 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 ShoppingTrolleyFragment() {
// 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 ShoppingTrolleyFragment.
*/
// TODO: Rename and change types and number of parameters
public static ShoppingTrolleyFragment newInstance(String param1, String param2) {
ShoppingTrolleyFragment fragment = new ShoppingTrolleyFragment();
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) {

View File

@ -8,53 +8,7 @@ import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
/**
* A simple {@link Fragment} subclass.
* Use the {@link VipFragment#newInstance} factory method to
* create an instance of this fragment.
*/
public class VipFragment 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 VipFragment() {
// 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 VipFragment.
*/
// TODO: Rename and change types and number of parameters
public static VipFragment newInstance(String param1, String param2) {
VipFragment fragment = new VipFragment();
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) {

View File

@ -3,6 +3,8 @@ package com.example.myapplication;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;
public class yindaoActivity extends AppCompatActivity {
@ -17,15 +19,86 @@ public class yindaoActivity extends AppCompatActivity {
ShoppingTrolleyFragment shoppingTrolleyFragment = new ShoppingTrolleyFragment();
MineFragment mineFragment = new MineFragment();
getSupportFragmentManager().beginTransaction().replace(R.id.constraintLayout9,homeFragment).commit();
getSupportFragmentManager().beginTransaction().replace(R.id.constraintLayout9,findFragment).commit();
getSupportFragmentManager().beginTransaction().replace(R.id.constraintLayout9,vipFragment).commit();
getSupportFragmentManager().beginTransaction().replace(R.id.constraintLayout9,shoppingTrolleyFragment).commit();
getSupportFragmentManager().beginTransaction().replace(R.id.constraintLayout9,mineFragment).commit();
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();
//默认第一个显示第一个
getSupportFragmentManager().beginTransaction()
.hide(findFragment).hide(vipFragment).hide(shoppingTrolleyFragment).hide(mineFragment).show(shoppingTrolleyFragment).commit();
.hide(findFragment).hide(vipFragment).hide(shoppingTrolleyFragment).hide(mineFragment).show(homeFragment).commit();
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);
}
});
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_selected="true" android:drawable="@drawable/faxian1"/>
<item android:state_selected="false" android:drawable="@drawable/faxian2"/>
</selector>

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_selected="true" android:drawable="@drawable/gouwuche1"/>
<item android:state_selected="false" android:drawable="@drawable/gouwuche2"/>
</selector>

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_selected="true" android:drawable="@drawable/huiyuan1"/>
<item android:state_selected="false" android:drawable="@drawable/huiyuan2"/>
</selector>

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_selected="true" android:drawable="@drawable/shouye1"/>
<item android:state_selected="false" android:drawable="@drawable/shouye2"/>
</selector>

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_selected="true" android:drawable="@drawable/wode1"/>
<item android:state_selected="false" android:drawable="@drawable/wode2"/>
</selector>

View File

@ -38,7 +38,7 @@
android:id="@+id/imageButton4"
android:layout_width="81dp"
android:layout_height="98dp"
android:src="@drawable/shouye1"
android:src="@drawable/shouyetupian"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
@ -57,7 +57,7 @@
android:id="@+id/imageButton5"
android:layout_width="72dp"
android:layout_height="96dp"
android:src="@drawable/faxian1"
android:src="@drawable/faxiantupian"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
@ -77,7 +77,7 @@
android:id="@+id/imageButton6"
android:layout_width="72dp"
android:layout_height="96dp"
android:src="@drawable/huiyuan1"
android:src="@drawable/huiyuantupian"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
@ -97,7 +97,7 @@
android:id="@+id/imageButton7"
android:layout_width="84dp"
android:layout_height="96dp"
android:src="@drawable/gouwuche1"
android:src="@drawable/gouwuchetupian"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
@ -117,7 +117,7 @@
android:id="@+id/imageButton8"
android:layout_width="74dp"
android:layout_height="96dp"
android:src="@drawable/wode1"
android:src="@drawable/wodetupian"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
@ -127,6 +127,7 @@
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/constraintLayout100"
android:layout_width="407dp"
android:layout_height="627dp"
app:layout_constraintBottom_toTopOf="@+id/constraintLayout9"

View File

@ -15,18 +15,17 @@
android:id="@+id/constraintLayout"
android:layout_width="409dp"
android:layout_height="130dp"
android:layout_marginBottom="2dp"
android:background="#FFFFFF"
app:layout_constraintBottom_toTopOf="@+id/constraintLayout2"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
app:layout_constraintStart_toStartOf="parent">
<TextView
android:id="@+id/textView9"
android:layout_width="129dp"
android:layout_height="31dp"
android:layout_marginBottom="28dp"
android:layout_marginTop="24dp"
android:layout_marginBottom="8dp"
android:gravity="center"
android:text="达人"
android:textSize="24sp"
@ -41,12 +40,12 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="180dp"
android:text="推荐"
android:gravity="center"
android:textStyle="bold"
android:textSize="18dp"
android:textColor="#000000"
android:backgroundTint="@color/white"
android:gravity="center"
android:text="推荐"
android:textColor="#000000"
android:textSize="18dp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
@ -56,12 +55,12 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="180dp"
android:text="关注"
android:gravity="center"
android:textStyle="bold"
android:textSize="18dp"
android:textColor="#000000"
android:backgroundTint="@color/white"
android:gravity="center"
android:text="关注"
android:textColor="#000000"
android:textSize="18dp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
@ -71,21 +70,17 @@
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/constraintLayout2"
android:layout_width="409dp"
android:layout_height="629dp"
android:layout_marginTop="2dp"
android:layout_height="550dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/constraintLayout">
app:layout_constraintStart_toStartOf="parent">
<androidx.recyclerview.widget.RecyclerView
android:layout_width="407dp"
android:layout_height="627dp"
android:layout_marginBottom="2dp"
android:layout_height="550dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
app:layout_constraintStart_toStartOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</FrameLayout>

View File

@ -6,14 +6,13 @@
android:layout_height="match_parent"
tools:context=".MineFragment">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/constraintLayout12"
android:layout_width="409dp"
android:layout_width="0dp"
android:layout_height="70dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
@ -21,8 +20,8 @@
<TextView
android:id="@+id/textView40"
android:layout_width="129dp"
android:layout_height="31dp"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginBottom="13dp"
android:gravity="center"
android:text="我的"
@ -34,14 +33,308 @@
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="409dp"
android:layout_height="659dp"
<androidx.core.widget.NestedScrollView
android:layout_width="0dp"
android:layout_height="0dp"
android:fillViewport="true"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/constraintLayout12">
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
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"
android:layout_width="409dp"
android:layout_height="175dp"
android:background="#FF0000"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<androidx.cardview.widget.CardView
android:id="@+id/cardView2"
android:layout_width="80dp"
android:layout_height="80dp"
android:layout_marginLeft="25dp"
android:layout_marginTop="25dp"
app:cardCornerRadius="38dp"
app:cardElevation="16dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<ImageView
android:id="@+id/imageView4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_launcher_background" />
</androidx.cardview.widget.CardView>
<TextView
android:id="@+id/textView57"
android:layout_width="99dp"
android:layout_height="34dp"
android:layout_marginStart="8dp"
android:layout_marginTop="24dp"
android:gravity="center"
android:text="57"
android:textColor="#FFFFFF"
android:textSize="18dp"
android:textStyle="bold"
app:layout_constraintStart_toEndOf="@+id/cardView2"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/textView58"
android:layout_width="130dp"
android:layout_height="34dp"
android:layout_marginStart="8dp"
android:gravity="center"
android:text="58"
android:textColor="#FFFFFF"
android:textSize="18dp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="@+id/cardView2"
app:layout_constraintStart_toEndOf="@+id/cardView2" />
<ImageButton
android:id="@+id/imageButton2"
android:layout_width="166dp"
android:layout_height="71dp"
android:layout_marginEnd="3dp"
android:src="@drawable/tihuoerweima"
app:layout_constraintBottom_toBottomOf="@+id/cardView2"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@+id/cardView2" />
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.cardview.widget.CardView
android:layout_width="380dp"
android:layout_height="150dp"
android:layout_marginStart="1dp"
android:layout_marginTop="130dp"
android:layout_marginEnd="1dp"
android:background="#FFFFFF"
app:cardCornerRadius="16dp"
app:cardElevation="10dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.487"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@+id/constraintLayout14" >
<ImageButton
android:id="@+id/imageButton3"
android:layout_width="145dp"
android:layout_height="39dp"
android:layout_marginLeft="230dp"
android:layout_marginTop="6dp"
android:src="@drawable/chakandingdan"
tools:layout_editor_absoluteX="155dp"
tools:layout_editor_absoluteY="134dp" />
<TextView
android:id="@+id/textView59"
android:layout_width="90dp"
android:layout_height="39dp"
android:layout_marginLeft="10dp"
android:layout_marginTop="8dp"
android:gravity="center"
android:text="我的订单"
android:textSize="20dp"
android:textStyle="bold" />
<androidx.cardview.widget.CardView
android:layout_width="360dp"
android:layout_height="91dp"
android:layout_marginLeft="10dp"
android:layout_marginTop="50dp"
app:cardElevation="10dp" >
<ImageButton
android:id="@+id/imageButton13"
android:layout_width="67dp"
android:layout_height="80dp"
android:layout_marginLeft="0dp"
android:layout_marginTop="5dp"
android:src="@drawable/daifukuan" />
<ImageButton
android:id="@+id/imageButton14"
android:layout_width="67dp"
android:layout_height="80dp"
android:layout_marginLeft="70dp"
android:layout_marginTop="5dp"
android:src="@drawable/daipeisong" />
<ImageButton
android:id="@+id/imageButton15"
android:layout_width="67dp"
android:layout_height="80dp"
android:layout_marginLeft="140dp"
android:layout_marginTop="5dp"
android:src="@drawable/daitihuo" />
</androidx.cardview.widget.CardView>
</androidx.cardview.widget.CardView>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.core.widget.NestedScrollView>
</androidx.constraintlayout.widget.ConstraintLayout>
</FrameLayout>
</FrameLayout>

View File

@ -15,7 +15,9 @@
android:id="@+id/constraintLayout10"
android:layout_width="409dp"
android:layout_height="70dp"
android:layout_marginTop="16dp"
android:background="#F2F5F5"
app:layout_constraintBottom_toTopOf="@+id/constraintLayout13"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
@ -24,7 +26,7 @@
android:id="@+id/textView10"
android:layout_width="129dp"
android:layout_height="31dp"
android:layout_marginBottom="13dp"
android:layout_marginTop="24dp"
android:gravity="center"
android:text="会员"
android:textSize="24sp"
@ -36,8 +38,9 @@
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/constraintLayout13"
android:layout_width="409dp"
android:layout_height="659dp"
android:layout_height="630dp"
android:background="#F2F5F5"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
@ -77,27 +80,26 @@
android:layout_height="44dp"
android:layout_marginEnd="36dp"
android:layout_marginBottom="68dp"
android:text="复制"
android:textStyle="bold"
android:textSize="14dp"
android:textColor="@color/black"
android:backgroundTint="#FFFFFF"
android:text="复制"
android:textColor="@color/black"
android:textSize="14dp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" />
<Button
android:id="@+id/button6"
android:layout_width="88dp"
android:layout_height="44dp"
android:layout_marginEnd="130dp"
android:layout_marginBottom="110dp"
android:text="团长"
android:textStyle="bold"
android:textSize="18dp"
android:textColor="@color/white"
android:backgroundTint="#FF0000"
android:text="团长"
android:textColor="@color/white"
android:textSize="18dp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" />
@ -105,11 +107,11 @@
android:id="@+id/textView37"
android:layout_width="86dp"
android:layout_height="32dp"
android:text="37"
android:textStyle="bold"
android:gravity="center"
android:text="37"
android:textColor="#FFFFFF"
android:textSize="18dp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="@+id/button6"
app:layout_constraintEnd_toStartOf="@+id/button6"
app:layout_constraintStart_toEndOf="@+id/cardView"
@ -133,11 +135,11 @@
android:id="@+id/textView39"
android:layout_width="99dp"
android:layout_height="29dp"
android:gravity="center"
android:text="39"
android:textColor="#FFFFFF"
android:textSize="18dp"
android:textStyle="bold"
android:gravity="center"
app:layout_constraintBottom_toBottomOf="@+id/button5"
app:layout_constraintEnd_toStartOf="@+id/button5"
app:layout_constraintStart_toEndOf="@+id/textView38"
@ -149,14 +151,14 @@
android:layout_height="120dp"
android:layout_marginStart="1dp"
android:layout_marginEnd="1dp"
android:layout_marginBottom="416dp"
android:layout_marginBottom="395dp"
android:background="#FFFFFF"
app:cardCornerRadius="16dp"
app:cardElevation="10dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.491"
app:layout_constraintStart_toStartOf="parent" >
app:layout_constraintStart_toStartOf="parent">
<TextView
android:id="@+id/textView11"
@ -183,9 +185,9 @@
android:layout_marginLeft="10dp"
android:layout_marginTop="42dp"
android:gravity="center"
android:textStyle="bold"
android:text="团队总人数"
android:textSize="12dp"
android:text="团队总人数" />
android:textStyle="bold" />
<TextView
android:id="@+id/textView13"
@ -194,9 +196,9 @@
android:layout_marginLeft="95dp"
android:layout_marginTop="42dp"
android:gravity="center"
android:textStyle="bold"
android:text="直系团长"
android:textSize="12dp"
android:text="直系团长" />
android:textStyle="bold" />
<TextView
android:id="@+id/textView14"
@ -205,9 +207,9 @@
android:layout_marginLeft="175dp"
android:layout_marginTop="42dp"
android:gravity="center"
android:textStyle="bold"
android:text="今日新增团长"
android:textSize="12dp"
android:text="今日新增团长" />
android:textStyle="bold" />
<TextView
android:id="@+id/textView15"
@ -216,9 +218,9 @@
android:layout_marginLeft="270dp"
android:layout_marginTop="42dp"
android:gravity="center"
android:textStyle="bold"
android:text="今日新增用户"
android:textSize="12dp"
android:text="今日新增用户" />
android:textStyle="bold" />
<TextView
android:id="@+id/textView24"
@ -227,10 +229,10 @@
android:layout_marginLeft="4dp"
android:layout_marginTop="12dp"
android:gravity="center"
android:textStyle="bold"
android:textSize="16dp"
android:text="24"
android:textColor="#FF0000"
android:text="24" />
android:textSize="16dp"
android:textStyle="bold" />
<TextView
android:id="@+id/textView25"
@ -239,10 +241,10 @@
android:layout_marginLeft="83dp"
android:layout_marginTop="12dp"
android:gravity="center"
android:textStyle="bold"
android:textSize="16dp"
android:text="25"
android:textColor="#FF0000"
android:text="25" />
android:textSize="16dp"
android:textStyle="bold" />
<TextView
android:id="@+id/textView26"
@ -251,10 +253,10 @@
android:layout_marginLeft="177dp"
android:layout_marginTop="12dp"
android:gravity="center"
android:textStyle="bold"
android:textSize="16dp"
android:text="26"
android:textColor="#FF0000"
android:text="26" />
android:textSize="16dp"
android:textStyle="bold" />
<TextView
android:id="@+id/textView27"
@ -263,10 +265,10 @@
android:layout_marginLeft="273dp"
android:layout_marginTop="12dp"
android:gravity="center"
android:textStyle="bold"
android:textSize="16dp"
android:text="27"
android:textColor="#FF0000"
android:text="27" />
android:textSize="16dp"
android:textStyle="bold" />
</androidx.cardview.widget.CardView>
</androidx.cardview.widget.CardView>
@ -275,14 +277,14 @@
android:layout_height="120dp"
android:layout_marginStart="1dp"
android:layout_marginEnd="1dp"
android:layout_marginBottom="273dp"
android:layout_marginBottom="252dp"
android:background="#FFFFFF"
app:cardCornerRadius="16dp"
app:cardElevation="10dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.491"
app:layout_constraintStart_toStartOf="parent" >
app:layout_constraintStart_toStartOf="parent">
<TextView
android:id="@+id/textView16"
@ -309,9 +311,9 @@
android:layout_marginLeft="30dp"
android:layout_marginTop="43dp"
android:gravity="center"
android:textStyle="bold"
android:text="订单总数"
android:textSize="14dp"
android:text="订单总数" />
android:textStyle="bold" />
<TextView
android:id="@+id/textView18"
@ -320,9 +322,9 @@
android:layout_gravity="center"
android:layout_marginTop="18dp"
android:gravity="center"
android:textStyle="bold"
android:text="今日订单"
android:textSize="14dp"
android:text="今日订单" />
android:textStyle="bold" />
<TextView
android:id="@+id/textView19"
@ -331,9 +333,9 @@
android:layout_marginLeft="270dp"
android:layout_marginTop="43dp"
android:gravity="center"
android:textStyle="bold"
android:text="售后订单"
android:textSize="14dp"
android:text="售后订单" />
android:textStyle="bold" />
<TextView
android:id="@+id/textView28"
@ -342,10 +344,10 @@
android:layout_marginLeft="23dp"
android:layout_marginTop="12dp"
android:gravity="center"
android:textStyle="bold"
android:textSize="16dp"
android:text="28"
android:textColor="#FF0000"
android:text="28" />
android:textSize="16dp"
android:textStyle="bold" />
<TextView
android:id="@+id/textView29"
@ -354,10 +356,10 @@
android:layout_marginLeft="141dp"
android:layout_marginTop="12dp"
android:gravity="center"
android:textStyle="bold"
android:textSize="16dp"
android:text="29"
android:textColor="#FF0000"
android:text="29" />
android:textSize="16dp"
android:textStyle="bold" />
<TextView
android:id="@+id/textView30"
@ -366,10 +368,10 @@
android:layout_marginLeft="264dp"
android:layout_marginTop="12dp"
android:gravity="center"
android:textStyle="bold"
android:textSize="16dp"
android:text="30"
android:textColor="#FF0000"
android:text="30" />
android:textSize="16dp"
android:textStyle="bold" />
</androidx.cardview.widget.CardView>
</androidx.cardview.widget.CardView>
@ -378,13 +380,13 @@
android:layout_height="120dp"
android:layout_marginStart="1dp"
android:layout_marginEnd="1dp"
android:layout_marginBottom="130dp"
android:layout_marginBottom="109dp"
android:background="#FFFFFF"
app:cardCornerRadius="16dp"
app:cardElevation="10dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" >
app:layout_constraintStart_toStartOf="parent">
<androidx.cardview.widget.CardView
android:layout_width="350dp"
@ -400,9 +402,9 @@
android:layout_gravity="center"
android:layout_marginTop="18dp"
android:gravity="center"
android:textStyle="bold"
android:text="今日佣金"
android:textSize="14dp"
android:text="今日佣金" />
android:textStyle="bold" />
<TextView
android:id="@+id/textView22"
@ -411,9 +413,9 @@
android:layout_marginLeft="30dp"
android:layout_marginTop="43dp"
android:gravity="center"
android:textStyle="bold"
android:text="总收入"
android:textSize="14dp"
android:text="总收入" />
android:textStyle="bold" />
<TextView
android:id="@+id/textView23"
@ -422,9 +424,9 @@
android:layout_marginLeft="270dp"
android:layout_marginTop="43dp"
android:gravity="center"
android:textStyle="bold"
android:text="今日拉新"
android:textSize="14dp"
android:text="今日拉新" />
android:textStyle="bold" />
<TextView
android:id="@+id/textView31"
@ -433,10 +435,10 @@
android:layout_marginLeft="16dp"
android:layout_marginTop="12dp"
android:gravity="center"
android:textStyle="bold"
android:textSize="16dp"
android:text="31"
android:textColor="#FF0000"
android:text="31" />
android:textSize="16dp"
android:textStyle="bold" />
<TextView
android:id="@+id/textView32"
@ -445,10 +447,10 @@
android:layout_marginLeft="140dp"
android:layout_marginTop="12dp"
android:gravity="center"
android:textStyle="bold"
android:textSize="16dp"
android:text="32"
android:textColor="#FF0000"
android:text="32" />
android:textSize="16dp"
android:textStyle="bold" />
<TextView
android:id="@+id/textView33"
@ -457,10 +459,10 @@
android:layout_marginLeft="263dp"
android:layout_marginTop="12dp"
android:gravity="center"
android:textStyle="bold"
android:textSize="16dp"
android:text="33"
android:textColor="#FF0000"
android:text="33" />
android:textSize="16dp"
android:textStyle="bold" />
</androidx.cardview.widget.CardView>
<TextView