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

相关推荐
_extraordinary_1 小时前
MySQL 事务(二)
android·数据库·mysql
鸿蒙布道师5 小时前
鸿蒙NEXT开发动画案例5
android·ios·华为·harmonyos·鸿蒙系统·arkui·huawei
橙子1991101611 小时前
在 Kotlin 中什么是委托属性,简要说说其使用场景和原理
android·开发语言·kotlin
androidwork11 小时前
Kotlin Android LeakCanary内存泄漏检测实战
android·开发语言·kotlin
笨鸭先游12 小时前
Android Studio的jks文件
android·ide·android studio
gys989512 小时前
android studio开发aar插件,并用uniapp开发APP使用这个aar
android·uni-app·android studio
H3091912 小时前
vue3+dhtmlx-gantt实现甘特图展示
android·javascript·甘特图
像风一样自由12 小时前
【001】renPy android端启动流程分析
android·gitee
千里马学框架14 小时前
重学安卓14/15自由窗口freeform企业实战bug-学员作业
android·framework·bug·systrace·安卓framework开发·安卓窗口系统·自由窗口
xianrenli3819 小时前
android特许权限调试
android