Android开发 第10课 FrameLayout
来源:互联网 发布:剑灵女咒术师捏脸数据 编辑:程序博客网 时间:2024/06/07 02:42
五布局之针布局 FrameLayout
这个布局中,所有的子元素都不能被指定放置的位置,他们统统放于这块区域的左上角,并且后面的子元素直接被覆盖在前面的子元素之上,将前面的子元素部分和去不遮挡
通过调控每一个控件的宽高来实现特殊效果。
帧布局中如何设置前景图使用 android:foreground 设置
哆啦A梦叠加效果实现<?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"><!--设置控件大小--> <TextView android:layout_gravity="center" android:background="@drawable/doraemonsad" android:id="@+id/textView4" android:layout_width="300dp" android:layout_height="300dp" android:text="第一个页面" /> <TextView android:layout_gravity="center" android:background="@drawable/doraemonhappy" android:id="@+id/textView5" android:layout_width="250dp" android:layout_height="250dp" android:text="第二个页面" /> <TextView android:layout_gravity="center" android:background="@drawable/doraemonsad" android:id="@+id/textView6" android:layout_width="150dp" android:layout_height="150dp" android:text="第三个页面" /> <TextView android:layout_gravity="center" android:background="@drawable/doraemonhappy" android:id="@+id/textView7" android:layout_width="100dp" android:layout_height="100dp" android:text="第四个页面" /></FrameLayout>
进度条实现<?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"><!--ProgressBar不能设置文字--> <ProgressBar android:layout_gravity="center" android:id="@+id/progressBar" style="?android:attr/progressBarStyle" android:layout_width="wrap_content" android:layout_height="wrap_content" /> <TextView android:layout_gravity="center" android:id="@+id/textView8" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="80%" /></FrameLayout>
阅读全文
0 0
- Android开发 第10课 FrameLayout
- 《Monkey Android》第8课FrameLayout、GridLayout
- 第10篇 FrameLayout
- android 开发布局之FrameLayout
- Android开发——FrameLayout
- .Net程序员玩转Android开发---(10)帧布局FrameLayout
- FrameLayout《第一行代码Android》学习笔记
- 【Android 开发教程】FrameLayout帧布局
- Android开发——FrameLayout布局
- Android学习第三天之FrameLayout帧布局
- .Net程序员玩转Android开发---(10)帧布局FrameLayout,androidframelayout
- 《Android开发从零开始》——11.AbsoluteLayout&FrameLayout学习
- android应用开发揭秘之examples_04_29(TabWidget及FrameLayout)
- Android开发总结笔记 FrameLayout(帧布局) 1-1-3
- Android开发&简单的ViewGroup——FrameLayout
- Android开发FrameLayout动态添加控件位置问题
- Android应用开发原理之从源码分析看Linearlayout、Relativelayout,Framelayout的布局差别(Framelayout分析)
- Android UI 之FrameLayout(-)
- 快速了解微信小程序的使用,一个根据小程序的框架开发的todos app
- 在使用dedecms的channel标签来调子栏目的时候,指定 “type=son typeid=x” 发现currentstyle无效
- 泛型: 泛型的内部原理:类型擦除以及类型擦除带来的问题
- POJ
- 从setTimeout说事件循环模型
- Android开发 第10课 FrameLayout
- Corn Fields POJ
- Device-Dependent Bitmaps (DDB) 设备相关位图
- LeetCode 16. 3Sum Closest
- Redis 集群
- Linux grep命令
- Java使用ObjectOutputStream和ObjectInputStream序列号对象报java.io.EOFException异常的解决方法
- java 常用集合list与Set、Map区别及适用场景总结
- 浅尝分布式事务