[Android新手学习笔记20]-FrameLayout帧布局
来源:互联网 发布:心事谁人知谐音 编辑:程序博客网 时间:2024/05/23 01:13
应用场景较少,碎片会使用。
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<Button
android:id="@+id/button1"
android:text="Button"
android:textAllCaps="false"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/text_view"
android:text="TextView很长很长"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</FrameLayout>
这种布局会重叠在左上角摆放。可以通过android:layout_gravity来控制对齐。
0 0
- [Android新手学习笔记20]-FrameLayout帧布局
- Android学习笔记(13):帧布局FrameLayout
- 帧布局FrameLayout学习笔记
- Android学习笔记07:框架布局FrameLayout
- Android FrameLayout 帧布局
- Android布局方式(FrameLayout)学习
- Android学习笔记12:框架布局管理器FrameLayout
- Android学习笔记十六之FrameLayout框架布局
- Android学习笔记十六之FrameLayout框架布局
- Android学习(十三)五布局帧布局FrameLayout
- Android学习-五布局之帧布局(FrameLayout)
- Android开发总结笔记 FrameLayout(帧布局) 1-1-3
- Android中的FrameLayout帧布局
- Android FrameLayout(帧布局)
- android中的帧布局(frameLayout)
- Android之FrameLayout(帧布局)
- Android之FrameLayout(帧布局)
- [Android新手学习笔记21]-百分比布局
- Hello CSDN
- java提高篇(二三)-----HashMap
- ReentrantLock同步
- Hierarchy Viewer工具问题汇总
- JAXB解析xml转换为POJO
- [Android新手学习笔记20]-FrameLayout帧布局
- MyEclipse
- 构建向量类Vecto4
- (3)Spring Boot热部署【从零开始学Spring Boot】
- Error Domain=NSURLErrorDomain Code=-999
- CentOs Mongodb 的安装配置
- 2017-02-09
- CentOS7下安装MySQL5.7
- Toolbar+DrawerLayout+recyclerVIew上下刷新加载问题记录