Android简易图片浏览器

android:layout_width="match_parent"

android:layout_height="wrap_content"

android:text="动漫"

android:textSize="45sp"

android:textColor="@color/colorAccent"

/>

<Button

android:id="@+id/btn2"

android:layout_marginTop="40dp"

android:layout_width="match_parent"

android:layout_height="wrap_content"

android:text="游戏"

android:textSize="45sp"

android:textColor="@color/colorAccent"

/>

<Button

android:id="@+id/btn3"

android:layout_marginTop="40dp"

android:layout_width="match_parent"

android:layout_height="wrap_content"

android:text="美女"

android:textSize="45sp"

android:textColor="@color/colorAccent"

/>

activity_main2.xml
<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"

android:layout_width="match_parent"

android:layout_height="match_parent"

android:background="#7A3F51B5"

android:orientation="vertical">

<ScrollView

android:layout_width="match_parent"

android:layout_height="wrap_content">

<LinearLayout

android:layout_width="match_parent"

android:layout_height="wrap_content"

android:orientation="vertical">

<TextView

android:layout_width="match_parent"

android:layout_height="wrap_content"

android:text="欢迎来到动漫世界"

android:gravity="center"

android:textSize="40sp"

/>

<ImageView

android:background="@drawable/dm"

android:layout_width="match_parent"

android:layout_height="350dp"

/>

<ImageView

android:background="@drawable/dm1"

android:layout_width="match_parent"

android:layout_height="350dp"

/>

<ImageView

android:background="@drawable/dm2"

android:layout_width="match_parent"

android:layout_height="350dp"

/>

<ImageView

android:background="@drawable/dm3"

android:layout_width="match_parent"

android:layout_height="350dp"

/>

<ImageView

android:background="@drawable/dm4"

android:layout_width="match_parent"

android:layout_height="350dp"

/>

<ImageView

android:background="@drawable/dm5"

android:layout_width="match_parent"

android:layout_height="350dp"

/>

<ImageView

android:background="@drawable/dm6"

android:layout_width="match_parent"

android:layout_height="350dp"

/>

<TextView

android:gravity="center"

android:layout_width="match_parent"

android:layout_height="wrap_content"

android:textSize="40sp"

android:text="滑到最后一页了哦"

/>

activity_main3.xml
<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"

android:layout_width="match_parent"

android:layout_height="match_parent"

android:background="#FF226F"

android:orientation="vertical">

<ScrollView

android:layout_width="match_parent"

android:layout_height="wrap_content">

<LinearLayout

android:layout_width="match_parent"

android:layout_height="wrap_content"

android:orientation="vertical">

<TextView

android:layout_width="match_parent"

android:layout_height="wrap_content"

android:text="欢迎来到游戏世界"

android:gravity="center"

android:textSize="40sp"

/>

<ImageView

android:background="@drawable/youxi"

android:layout_width="match_parent"

android:layout_height="250dp"

/>

<ImageView

android:background="@drawable/youxi2"

android:layout_width="match_parent"

android:layout_height="250dp"

/>

<ImageView

android:background="@drawable/youxi3"

android:layout_width="match_parent"

android:layout_height="250dp"

/>

<ImageView

android:background="@drawable/youxi4"

android:layout_width="match_parent"

android:layout_height="250dp"

/>

<ImageView

android:background="@drawable/youxi1"

android:layout_width="match_parent"

android:layout_height="250dp"

/>

<ImageView

android:background="@drawable/youxi5"

android:layout_width="match_parent"

android:layout_height="250dp"

/>

<ImageView

android:background="@drawable/youxi6"

android:layout_width="match_parent"

android:layout_height="250dp"

/>

<ImageView

android:background="@drawable/youxi7"

android:layout_width="match_parent"

android:layout_height="250dp"

/>

<ImageView

android:background="@drawable/youxi8"

android:layout_width="match_parent"

android:layout_height="250dp"

/>

<TextView

android:gravity="center"

android:layout_width="match_parent"

android:layout_height="wrap_content"

android:textSize="40sp"

android:text="滑到最后一页了哦"

/>

activity_main4.xml
<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"

android:layout_width="match_parent"

android:layout_height="match_parent"

android:orientation="vertical">

<ScrollView

android:layout_width="match_parent"

android:layout_height="wrap_content">

<LinearLayout

android:layout_width="match_parent"

android:layout_height="wrap_content"

android:orientation="vertical">

<TextView

android:background="#9A86AF4C"

android:layout_width="match_parent"

android:layout_height="wrap_content"

android:text="欢迎来到美女世界"

android:gravity="center"

android:textSize="40sp"

/>

<ImageView

android:background="@drawable/mn1"

android:layout_width="match_parent"

android:layout_height="550dp"

/>

<ImageView

android:background="@drawable/mn2"

android:layout_width="match_parent"

android:layout_height="550dp"

/>

<ImageView

android:background="@drawable/mn3"

android:layout_width="match_parent"

android:layout_height="550dp"

/>

<ImageView

android:background="@drawable/mn4"

android:layout_width="match_parent"

android:layout_height="550dp"

/>

<ImageView

android:background="@drawable/mn5"

android:layout_width="match_parent"

android:layout_height="550dp"

/>

<ImageView

android:background="@drawable/mn6"

android:layout_width="match_parent"

android:layout_height="550dp"

/>

<ImageView

android:background="@drawable/mn7"

android:layout_width="match_parent"

android:layout_height="550dp"

/>

<ImageView

android:background="@drawable/mn8"

android:layout_width="match_parent"

android:layout_height="550dp"

/>

<ImageView

相关推荐
恋猫de小郭28 分钟前
Google I/O Extended :2025 Flutter 的现状与未来
android·前端·flutter
@Ryan Ding1 小时前
MySQL主从复制与读写分离概述
android·mysql·adb
移动开发者1号2 小时前
Android 同步屏障(SyncBarrier)深度解析与应用实战
android·kotlin
移动开发者1号2 小时前
深入协程调试:协程调试工具与实战
android·kotlin
雨白10 小时前
Jetpack系列(三):Room数据库——从增删改查到数据库平滑升级
android·android jetpack
花王江不语13 小时前
android studio 配置硬件加速 haxm
android·ide·android studio
江太翁15 小时前
mediapipe流水线分析 三
android·mediapipe
与火星的孩子对话15 小时前
Unity进阶课程【六】Android、ios、Pad 终端设备打包局域网IP调试、USB调试、性能检测、控制台打印日志等、C#
android·unity·ios·c#·ip
tmacfrank16 小时前
Android 网络全栈攻略(四)—— TCPIP 协议族与 HTTPS 协议
android·网络·https
fundroid17 小时前
Kotlin 协程:Channel 与 Flow 深度对比及 Channel 使用指南
android·kotlin·协程