博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
andorid之帧布局FrameLayout
阅读量:4675 次
发布时间:2019-06-09

本文共 809 字,大约阅读时间需要 2 分钟。

FrameLayout(帧布局)

:layout/activity_main.xml

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

    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    >
    <ImageView android:layout_width="128dp"
        android:layout_height="128dp"
        android:src="@drawable/p03"/>
<ImageView android:layout_width="64dp"
        android:layout_height="64dp"
        android:src="@drawable/p02"/>
<ImageView android:layout_width="32dp"
        android:layout_height="32dp"
        android:src="@drawable/p01"/>
<Button 
   android:layout_width="wrap_content"
   android:layout_height="wrap_content"
   android:text="查看图片"
   android:layout_gravity="bottom|center_horizontal"
   android:textColor="#000"
   android:textSize="25dp"
   />
</FrameLayout>

效果:

 

转载于:https://www.cnblogs.com/qa962839575/p/4148609.html

你可能感兴趣的文章
第一次结对编程作业
查看>>
Python的isinstance()函数
查看>>
Windows安装Pygame
查看>>
python报错: _tkinter.TclError: couldn't recognize data in image file
查看>>
Python正则表达式
查看>>
python中的迭代器
查看>>
HTML 样式表
查看>>
poj-1274-The Perfect Shall
查看>>
urlEncodeComponent
查看>>
@media 适配兼容
查看>>
Ajax相关
查看>>
MySQL教程 3.3
查看>>
相似度度量计算
查看>>
msys2-x86_64搭建QT Mingw64编译环境
查看>>
Java中实现复制文件或文件夹——CopyUtil.java
查看>>
ANT控制台输出中文乱码的解决方法
查看>>
lite, beta, alpha, rc, release, etc 版本专用词汇辑录
查看>>
json针对list map set 应用
查看>>
redis配置文件详解
查看>>
Windows下更改MySQL数据库的存储位置
查看>>