添加页面
This commit is contained in:
parent
32ea596bec
commit
5b989d12a3
|
@ -38,6 +38,12 @@
|
|||
android:theme="@style/Theme.MyApplication"
|
||||
android:usesCleartextTraffic="true"
|
||||
tools:targetApi="31">
|
||||
<activity
|
||||
android:name=".MessageActivity3"
|
||||
android:exported="false" />
|
||||
<activity
|
||||
android:name=".MessageActivity2"
|
||||
android:exported="false" />
|
||||
<activity
|
||||
android:name=".SetActivity"
|
||||
android:exported="false" />
|
||||
|
|
|
@ -23,6 +23,8 @@ public class Home1Fragment extends Fragment {
|
|||
// Inflate the layout for this fragment
|
||||
View view=inflater.inflate(R.layout.fragment_home1, container, false);
|
||||
ImageView imageView1=view.findViewById(R.id.xtuantuan);
|
||||
ImageView imageView2=view.findViewById(R.id.doubao);
|
||||
ImageView imageView3=view.findViewById(R.id.daily);
|
||||
String imgUrl1="http://106.53.194.250:30089/i/2024/06/20/6673bbd16062f.png";
|
||||
Glide.with(this)
|
||||
.load(imgUrl1)
|
||||
|
@ -35,6 +37,21 @@ public class Home1Fragment extends Fragment {
|
|||
|
||||
}
|
||||
});
|
||||
imageView2.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
Intent intent3 =new Intent(getActivity(),MessageActivity3.class);
|
||||
startActivity(intent3);
|
||||
}
|
||||
});
|
||||
imageView3.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
Intent intent1 =new Intent(getActivity(),MessageActivity2.class);
|
||||
startActivity(intent1);
|
||||
}
|
||||
});
|
||||
|
||||
return view;
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,44 @@
|
|||
package com.example.myapplication;
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import android.widget.ImageView;
|
||||
|
||||
import com.bumptech.glide.Glide;
|
||||
|
||||
public class MessageActivity2 extends AppCompatActivity {
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_message2);
|
||||
ImageView imageView17=findViewById(R.id.imageView17);
|
||||
ImageView imageView18=findViewById(R.id.imageView18);
|
||||
ImageView imageView19=findViewById(R.id.imageView19);
|
||||
String imgUrl17="http://106.53.194.250:30089/i/2024/06/20/6674387c7ba8a.png";
|
||||
Glide.with(this)
|
||||
.load(imgUrl17)
|
||||
.into(imageView17);
|
||||
String imgUrl18="http://106.53.194.250:30089/i/2024/06/20/6674387c79559.png";
|
||||
Glide.with(this)
|
||||
.load(imgUrl18)
|
||||
.into(imageView18);
|
||||
String imgUrl19="http://106.53.194.250:30089/i/2024/06/20/6674387cf01b5.png";
|
||||
Glide.with(this)
|
||||
.load(imgUrl19)
|
||||
.into(imageView19);
|
||||
|
||||
|
||||
ImageView imageView14=findViewById(R.id.imageView14);
|
||||
imageView14.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
Intent intent3 =new Intent(MessageActivity2.this,FirstActivity.class);
|
||||
startActivity(intent3);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
|
@ -0,0 +1,44 @@
|
|||
package com.example.myapplication;
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import android.widget.ImageView;
|
||||
|
||||
import com.bumptech.glide.Glide;
|
||||
|
||||
public class MessageActivity3 extends AppCompatActivity {
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_message3);
|
||||
ImageView imageView17=findViewById(R.id.imageView17);
|
||||
ImageView imageView18=findViewById(R.id.imageView18);
|
||||
ImageView imageView19=findViewById(R.id.imageView19);
|
||||
String imgUrl17="http://106.53.194.250:30089/i/2024/06/20/66743bde4dae7.png";
|
||||
Glide.with(this)
|
||||
.load(imgUrl17)
|
||||
.into(imageView17);
|
||||
String imgUrl18="http://106.53.194.250:30089/i/2024/06/20/66743bdd05bda.png";
|
||||
Glide.with(this)
|
||||
.load(imgUrl18)
|
||||
.into(imageView18);
|
||||
String imgUrl19="http://106.53.194.250:30089/i/2024/06/20/66743bdce0d9d.png";
|
||||
Glide.with(this)
|
||||
.load(imgUrl19)
|
||||
.into(imageView19);
|
||||
|
||||
|
||||
ImageView imageView14=findViewById(R.id.imageView14);
|
||||
imageView14.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
Intent intent3 =new Intent(MessageActivity3.this,FirstActivity.class);
|
||||
startActivity(intent3);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 39 KiB |
Binary file not shown.
After Width: | Height: | Size: 42 KiB |
|
@ -0,0 +1,103 @@
|
|||
<?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=".MessageActivity2">
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:ignore="TouchTargetSizeCheck,SpeakableTextPresentCheck">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="2000dp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/constraintLayout13"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="100dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintHorizontal_bias="0.0"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageView14"
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="78dp"
|
||||
android:layout_marginTop="10dp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:srcCompat="@drawable/back" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView17"
|
||||
android:layout_width="78dp"
|
||||
android:layout_height="42dp"
|
||||
android:layout_marginStart="84dp"
|
||||
android:text="详情"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="30dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@+id/imageView14"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageView15"
|
||||
android:layout_width="74dp"
|
||||
android:layout_height="62dp"
|
||||
android:layout_marginEnd="28dp"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/textView17"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@+id/textView17"
|
||||
app:srcCompat="@drawable/share" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageView16"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="628dp"
|
||||
android:layout_marginTop="-30dp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/constraintLayout13"
|
||||
app:srcCompat="@drawable/m2" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageView17"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="418dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/imageView16" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageView18"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="418dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/imageView17"
|
||||
/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageView19"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="418dp"
|
||||
app:layout_constraintTop_toBottomOf="@+id/imageView18" />
|
||||
|
||||
|
||||
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
@ -0,0 +1,103 @@
|
|||
<?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=".MessageActivity3">
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:ignore="TouchTargetSizeCheck,SpeakableTextPresentCheck">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="2000dp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/constraintLayout13"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="100dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintHorizontal_bias="0.0"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageView14"
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="78dp"
|
||||
android:layout_marginTop="10dp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:srcCompat="@drawable/back" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView17"
|
||||
android:layout_width="78dp"
|
||||
android:layout_height="42dp"
|
||||
android:layout_marginStart="84dp"
|
||||
android:text="详情"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="30dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@+id/imageView14"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageView15"
|
||||
android:layout_width="74dp"
|
||||
android:layout_height="62dp"
|
||||
android:layout_marginEnd="28dp"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/textView17"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@+id/textView17"
|
||||
app:srcCompat="@drawable/share" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageView16"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="628dp"
|
||||
android:layout_marginTop="-30dp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/constraintLayout13"
|
||||
app:srcCompat="@drawable/m3" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageView17"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="418dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/imageView16" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageView18"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="418dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/imageView17"
|
||||
/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageView19"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="418dp"
|
||||
app:layout_constraintTop_toBottomOf="@+id/imageView18" />
|
||||
|
||||
|
||||
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
Loading…
Reference in New Issue