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

相关推荐
androidwork2 小时前
Android LinearLayout、FrameLayout、RelativeLayout、ConstraintLayout大混战
android·java·kotlin·androidx
每次的天空2 小时前
Android第十三次面试总结基础
android·面试·职场和发展
wu_android2 小时前
Android 相对布局管理器(RelativeLayout)
android
李斯维4 小时前
循序渐进 Android Binder(二):传递自定义对象和 AIDL 回调
android·java·android studio
androidwork4 小时前
OkHttp 3.0源码解析:从设计理念到核心实现
android·java·okhttp·kotlin
像风一样自由4 小时前
【001】frida API分类 总览
android·frida
casual_clover4 小时前
Android 之 kotlin 语言学习笔记四(Android KTX)
android·学习·kotlin
移动开发者1号6 小时前
Android 大文件分块上传实战:突破表单数据限制的完整方案
android·java·kotlin
移动开发者1号6 小时前
单线程模型中消息机制解析
android·kotlin
每次的天空9 小时前
Android第十五次面试总结(第三方组件和adb命令)
android