FrameLayout布局
来源:互联网 发布:科学管理案例 知乎 编辑:程序博客网 时间:2024/05/01 14:53
FrameLayout布局中,不能控制子控件的位置,子控件默认放人FrameLayout的左上角。
XML布局例子如下:
<?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:id="@+id/h1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/app_name" /> <TextView android:id="@+id/h3" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/hello_world" /> <TextView android:id="@+id/h2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/search" /> </FrameLayout>
0 0
- FrameLayout布局
- FrameLayout布局
- FrameLayout布局
- FrameLayout布局
- FrameLayout布局
- FrameLayout布局
- Framelayout 布局
- FrameLayout布局
- FrameLayout布局
- 界面布局-FrameLayout
- FrameLayout(单帧布局)
- Android布局之FrameLayout
- Android之FrameLayout布局
- android--FrameLayout布局
- FrameLayout(框架布局)
- A017-布局之FrameLayout
- 框架布局FrameLayout
- FrameLayout布局(1)
- [转贴] 黑鹰VIP破解教程和天草破解教程的内容整体整理 [复制链接] zhang3314 电梯直达楼主 发表于 2011-4-14 23:02 | 只看该作者 分享到:QQ空间微信腾讯
- 用汇编的眼光看C++(之判断流程)
- <Lua程序设计(第二版)>书摘-1
- Wireshark源码编译总结
- Android API Guides 之 App Manifest(18) - <provider>
- FrameLayout布局
- [leetcode]Longest Valid Parentheses
- ssh中“Host key verification failed.“的解决方案
- .NET机房收费系统用例图分析
- 【数组】Container With Most Water
- Android API Guides 之 App Manifest(19) - <receiver>
- TCP 半关闭
- apk安装和运行
- Composite(组合模式)