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

相关推荐
私人珍藏库1 小时前
[Android] APK提取器(1.3.7)版本
android
m0_748232641 小时前
mysql的主从配置
android·mysql·adb
秋长愁2 小时前
Android监听应用前台的实现方案解析
android
胖虎12 小时前
2025 新版Android Studio创建Java语言项目
android·java·android studio·创建java项目
JabamiLight4 小时前
Lineageos 22.1(Android 15)Launcer简单调整初始化配置
android·android 15·lineageos 22.1·launcer
敲代码的鱼哇5 小时前
设备唯一ID获取,支持安卓/iOS/鸿蒙Next(uni-device-id)UTS插件
android·ios·uniapp·harmonyos
太空漫步117 小时前
android滑动看新闻
android
KdanMin7 小时前
“让App玩捉迷藏:Android教育平板的‘隐身术’开发实录”
android
韩曙亮7 小时前
【Android】Android 悬浮窗开发 ( 动态权限请求 | 前台服务和通知 | 悬浮窗创建 )
android·service·悬浮窗·服务·前台服务·动态权限·通知通道
双鱼大猫7 小时前
一句话说透Android里面的BufferQueue机制
android·程序员